Python Telegram Bot with pyTelegramBotAPI

Publicado em: 21 Janeiro 2018
no canal de: 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!


Nesta página do site você pode assistir ao vídeo on-line Python Telegram Bot with pyTelegramBotAPI duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Komron Writes Code 21 Janeiro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 104,556 vezes e gostou 1.5 mil espectadores. Boa visualização!