GithubHelp home page GithubHelp logo

undrcrxwn / radzinsky Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 295 KB

That one single Telegram bot to replace all the others

Home Page: https://t.me/radzinsky_bot

C# 100.00%
bot bots chat-manager telegram telegram-api telegram-bot telegram-bot-api telegram-bots asp-net-core dotnet

radzinsky's Introduction

Bio

Hi! My name is Danil. I'm an 19yo .NET backend developer from Rostov-on-Don, Russia who is curious about software engineering, architecture and system design. Have been studying for my bachelor's degree in computer science at the Don State Technical University since 2022. Dramatically unemployed.

Pets

๐Ÿฅ‡ Crowd Parlay โ€” a C2C bet aggregation platform on microservices

  • languages: C# TypeScript SQL Cypher HTML SCSS
  • technologies: ๐Ÿฆ„ RabbitMQ MassTransit SignalR gRPC Redis .NET 8 ASP.NET Core React Postgres Neo4j OpenAPI OAuth 2.0 OpenID Connect Docker Kubernetes Istio GitHub Actions
  • architecture: Microservices Event-driven Service mesh
  • workflow: >5 contributors GitLab CI/CD Kanban Conventional commits Miro

๐Ÿฅˆ Hide This Bot โ€” an inline Telegram bot ever used by >10k people worldwide

  • languages: Python
  • technologies: Aiogram PeeWee

๐Ÿฅ‰ Radzinsky โ€” a Telegram bot primarily used for chat-management and entertainment

  • languages: C#
  • technologies: .NET 8 ASP.NET Core EF Core Hangfire Mapster Docker Telegram.Bots

Contacts

radzinsky's People

Contributors

dependabot[bot] avatar doku4ae4ka avatar undrcrxwn avatar zendet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

doku4ae4ka

radzinsky's Issues

Early return 200 OK to prevent request duplication for long-running operations

Problem

If it takes too long before the response is sent back to Telegram, it will resend the webhook request causing multiple handling of the same update. This may be experienced in long-running operations and while debugging (e.g. pausing the one thread that is handling a request).

Possible solution

First return 200 OK status code right from the webhook controller and then handle the Telegram update in a separate thread.

Redesign resources injection

  1. Concrete resources should derive from common resources.
  2. Resource loading (which is an I/O sort of work) shouldn't be performed in DI extensions logic, thus needs separation.

Radzinsky's boilerplate should become a separate NuGet package

At the moment, Radzinsky's implementation cobines both in one business logic and infrastructure concerns which seems to become a real issue when it comes to scaling. The boilerplate implementation that also includes such patterns as behavior pipeline and update contexts should be separated from the bot as such and most likely be published as a complete framework wrapper over the Telegram.Bot library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.