boldcas.blogg.se

Telegram bot interactive
Telegram bot interactive













telegram bot interactive telegram bot interactive telegram bot interactive

That’s it! Not enough to build any kind of Telegram bot, but sufficient for many fun applications. This gets called upon a message, and if it returns a String, that’s the response. This environment provides a much simpler “API” for the bots: Define a function like the following: def private_message(sender, text): You simply write a single Python function, click the “Deploy” button, and the bot is live. So I built a browser-based Python programming environments for Telegram bots that takes care of all of that. In a way it combines the simplicity of the typical initial programming exercises on the command-line with the impact and relevance of web programming.īut of course “real” bot programming is still too hard – installing a programming environment, setting up a server, deploying, dealing with access tokens, understanding the Telegram Bot API and mapping it to your programming language. Much simpler than anything graphical or even web programming. or and it occurred to me that this might be a good starting point: Chat bot interactions have a very simple data model: message in, response out, all simple text. I have already experimented a bit with writing bots for Telegram (e.g. They were old enough to have their own smartphone, and they were already happily chatting with their friends, using the Telegram messenger. A way that allows them to get started with very little friction, build something that’s relevant in their currently life quickly, and avoids frustration. A while ago I set out to get some teenagers interested in programming, and thought about a good way to achieve that.















Telegram bot interactive