Python Telegram Bot Tutorial: How to deploy to PythonAnyWhere #4 | Python project

preview_player
Показать описание
In this part #4 of Python Telegram Bot Tutorial I'll show hot to deploy the Telegram Bot to the PythonAnyWhere hosting.

Follow me @:

============ SOURCE CODE ================
📎️ The SOURCE CODE is available via Patreon:
======================================

✴️✴️✴️ Web Scraping course ✴️✴️✴️
is available via Patreon here:

or its landing:

➥ Please ➥ Like ➥ Comment ➥ Subscribe

The Telegram Bot takes a command (cryptocurrency ticker) from a user, such as: /btc, /eth, /xrp, etc., performs a request to the CoinMarketCap API and returns to the user a price of the cryptocurrency in USD.

The Telegram Bot is a Flask framework application that uses a webhook to receive updates.

--- PLAYLIST ---

Covered topics:

1. Dealing with CoinMarketCap API
2. Making GET and POST requests with the Requests library
3. Dealing with json-objects with Python (reading and writing)
4. Creating a Flask application. Handling POST-requests with a Flask
5. Searching a text with regular expressions
6. Creating a Telegram Bot with BotFather. Adding a bot commands.
7. Dealing with the Telegram bots API.
8. Testing a webhook with tunneling services
9. Deploy Telegram bot (a Flask application) to the PythonAnyWhere servers.
10. Solving a SSL certificates issue with the Flask-SSLify extension

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a new video.
Рекомендации по теме
Комментарии
Автор

What video should I make next? Any suggestions? *Write me in comments!*
Follow me @:

Help the channel grow! Please Like the video, Comment, SHARE & Subscribe!

RedEyedCoderClub
Автор

Supercool project! And happy this complex project worked! At some point I lost track what you were doing and had to make a mindmap of what goes where and why. You covered so many topics I've been practicing separately.
- Working with JSON,
- API calls
- GET, POST, HTTP Headers
- Web hooks
- SSL tunneling
- set up and launching a Web app
- and regex! oh my coding lord! It makes sense now.

Now my first bot is up and running. I want to modify it to return me a few tickers at once. And also round up the numbers to cents and some extra descriptions.

tanercoder
Автор

Very good video, very detailed explanation. Thank you very much for teaching me !! finally I made my first bot because of you, I have subscribed and like all of your videos. I hope you make more videos again! Cheers my friend!

alvaro
Автор

Thank You for putting out great content like this on the web for free with an outstanding explanation. Really enjoyed the series and got my game bot working :))

gamebuz
Автор

now that virtualenv venv command not working. can u please help me to resolve it. Im mad asking questions in a year old video.please

dravid
Автор

Hi, do you know how to deploy the exact same code to Heroku? I set the webhook manually as shown by you, but still my bot does not reply when I message it. Do i have to open some ports or something on Heroku? Any help would be appreciated.

EnglishRain
Автор

Hi bro, web hook bots slows down when nobody use some time ex: after 1 or 2 hour when i send a message to web hook bot its slows down but after this other messages keeps running normal

aliyyil
Автор

You did not run an show telegram side, but only showed server side

sherzodnurullayev
Автор

Thanks for video that was really awesome!

I am studying a bot with a group help bot and a personal message bot running at the same time.
The private bot asks a question through the CommandHandller and wants to receive the answer and save it in the DB, but I am wandering because I do not know how to access it.
Are there any keywords or sample sources that might help?

star-
Автор

Hey Oleg, thanks for this wonderful tutorial

Could you please help resolve this bug:
I go /btc
Bot replies 52000.646
I reply to the message “bought $20 today”
Bot replies Wrong data
Then I edited my message to “bought $20”.
After that bot stops replying at all.
/btc or blabla - noting works.

I tried to delete and set webhook again but no success. It works for other users well.

I tried to delete and set webhook again but no success. Also tried to reload my python anywhere instance.

It works for other users okay. 🤷🏼‍♂️

noneedtoknowaname
Автор

great video!!
any idea how i can deploy a telegram bot using the python-telegram-bot api to python anywhere?
currently still stuck at that stage

writeexcel
Автор

but what if some body enter wrong command like /hi :)

katsu
join shbcf.ru