![]() ![]() ![]() The technic of communicating with user he has used in this repo was a plain old long-polling, which sucks, because actually Telegram has Webhook API which is a much more convenient way to setup user vs bot communication.He has been asked a lot via Github issues about the right/possible way to store state of a Telegram bot vs user communication. It’s pretty cool, it allows you to save data to database, translate your messages via i18n, use custom keyboards and etc., but as he realised later he did miss a couple of things that are pretty important. At first, he has a repository called ruby-telegram-bot-starter-kit, which contains a boilerplate for creating simple Telegram bots.As he says, he has a couple of reasons to write this article. ![]() Let’s have a look at Maxim decided to share with us. How to Make Your Code Style Great Again.You could have already seen Maxim’s article about code style. We have asked our Team member Maxim Abramchuk to shade some light and make a guide on how to create a Telegram Bot that stores state. Luckily, among Rubyroid Labs Team we also have some developers interested in this topic. With Pavel Durov’s promise to give away $1 million to the best Telegram bot developers, even those who were not very much interested in this topic, got some appetite. Telegram bots are becoming the next big thing. ![]()
0 Comments
Leave a Reply. |