Code Monkey home page Code Monkey logo

telegram_bot's People

Contributors

delef avatar gbetsan avatar hangyas avatar juanedi avatar l4rzy avatar mamantoha avatar spalladino avatar splattael avatar unn4m3d avatar vladfaust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram_bot's Issues

Update to work with Crystal 0.24

Crystal 0.24 brought a lot of breaking changes, one of which was the migration from HTTP::Client.post_form to HTTP::Client.post(form: ...)

"Choosen"

Must be a typo. It must be "chosen" (with one "o").

"nillable"

Must be type. Has to be "nilable" (with one "l").

Add a way to handle commands and plain messages

The way things are currently set up it doesn't look like it's possible to create commands using the cmd method and override the handle method for non-command text. This means I have to override the handle method and include a check to see if the first character is "/" then duplicate the functionality included in the TelegramBot::CmdHandler module.

The response delay is high, there is no clue

I implemented a bot in two different languages ​​and found that the Crystal/TelegramBot has a very high latency.

It takes about two seconds to respond to the api. Other language frameworks only take a few hundred milliseconds.

I don't see sleep-related code in your framework, no clue.

What do you think is the reason? Thanks!

Please use github releases

shards update download every time a project from the HEAD. Please use releases, it's easier to work. Thanks for attention.

Games support

None currently found. Also propose to remove the checkmark from all messages type 😏

Bot does not respond in group chats

I get the following error when adding and executing commands from a group chat:

update was not handled because: Error 400 in call to Telegram API: {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}

However, the bot seems able operate normally when chatting with it directly.
Apart from doing exactly as done in the example and registering the Bot with the BotFather, is there anything else required to get a bot working in a group chat?

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.