Python Telegram Bot with pyTelegramBotAPI

Published: 21 January 2018
on channel: Komron Writes Code
104,556
1.5k

If you liked the video, please be sure to comment, like and subscribe. In case you have any questions, leave them in the comments and I will check up on you as fast as I can. Any suggestions and/or constructive criticism are appreciated.

Link to the official Telegram Bot API: https://core.telegram.org/bots/api

Link to pyTelegramBotAPI repository: https://github.com/eternnoir/pyTelegr...

As to my editor of choice, I prefer using the fully customizable and open-source Atom. Link: https://atom.io

In pyTelegramBotAPI, message handlers are accessed using decorator functions. If you don't know what those are, here are some things you can look at:
"A guide to Python decorators" by The Code Ship - https://www.thecodeship.com/patterns/...
"Python Tutorial: Decorators" by Corey Schafer-    • Python Tutorial: Decorators - Dynamically ...  

I also talk about how telegram closes connections every hour or so, so here is the Github Issue: https://github.com/eternnoir/pyTelegr...

Here is a quick article on lambda functions if you are having a hard time with them: https://pythonconquerstheuniverse.wor...

Where you can host your bot for free (please don't use it for purposes other than testing): https://pythonanywhere.com

I also hear you can host the bot on Heroku, but I haven't been able to personally do that. If you would want to host the bot on an actual server, I would recommend Scaleway's Starter X86-64 priced at £2.99.

If you need the code for the bot, please now that it's open-source and can be found at https://github.com/karipov/atlink

Thanks for watching!


On this page of the site you can watch the video online Python Telegram Bot with pyTelegramBotAPI with a duration of hours minute second in good quality, which was uploaded by the user Komron Writes Code 21 January 2018, share the link with friends and acquaintances, this video has already been watched 104,556 times on youtube and it was liked by 1.5 thousand viewers. Enjoy your viewing!