hangyas / telegram_bot Goto Github PK
View Code? Open in Web Editor NEW(deprecated) see https://github.com/protoncr/tourmaline instead
License: MIT License
(deprecated) see https://github.com/protoncr/tourmaline instead
License: MIT License
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: ...)
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.
Must be type. Has to be "nilable" (with one "l").
Telegram Bot API says that input_message_content
is an Optional parameter, however in the code it's not nilable for InlineQueryResultVoice & InlineQueryResultCachedVoice. Might be a bug.
shards update
download every time a project from the HEAD
. Please use releases, it's easier to work. Thanks for attention.
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!
Must be a typo. It must be "chosen" (with one "o").
Hi, how do I use ReplyKeyboardMarkup?
Please, add support for http and/or SOCKS5 proxy.
None currently found. Also propose to remove the checkmark from all messages type π
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.