Damilare Jolayemi
Jan 7, 2022 ⋅ 6 min read

How to build and deploy a Telegram bot with Flask

Damilare Jolayemi Damilare is an enthusiastic problem-solver who enjoys building whatever works on the computer. He has a knack for slapping his keyboards till something works. When he's not talking to his laptop, you'll find him hopping on road trips and sharing moments with his friends, or watching shows on Netflix.

Recent posts:

Implementing Vector Search With Open Ai, Next Js, And Supabase

Implementing vector search with OpenAI, Next.js, and Supabase

Let’s build a Next.js app that implements vector search using Supabase and OpenAI to offer better search experiences for users.

Peter Ekene Eze
Feb 27, 2024 ⋅ 11 min read
Comparing React Native BLE libraries

Comparing React Native BLE libraries

Discover the most popular libraries for enabling Bluetooth Low Energy (BLE) in React Native apps, allowing them to interact with Bluetooth hardware on iOS and Android platforms.

Fimber Elemuwa
Feb 26, 2024 ⋅ 4 min read
Using CRDTs To Build Collaborative Rust Web Applications

Using CRDTs to build collaborative Rust web applications

CRDTs, or conflict-free replicated data types, is a concept that underlies applications facing the issue of data replication across a […]

Mario Zupan
Feb 23, 2024 ⋅ 15 min read
Guide to Using TensorFlow in Rust

Guide to using TensorFlow in Rust

We explore the fusion of TensorFlow and Rust, delving into how we can integrate these two technologies to build and train a neural network.

Rosario De Chiara
Feb 22, 2024 ⋅ 8 min read
View all posts

2 Replies to "How to build and deploy a Telegram bot with Flask"

  1. This is a great blog post Damilare!

    Thanks for sharing 🙂

    The part that I did not understand well is: When does the Flask app is initialized?
    To my understanding, you are asking Heroku to run bot app, via:
    web: python bot.py $PORT

    But I do not understand when the app.run() statement in the Flask app is executed.
    Does Heroku runs both bot.py as well as dictionary.py files?

    Would you please elaborate?

  2. Great Content. One thing that I do not understand is ‘webhook_url= + telegram_bot_token’
    what will the webhook_url look like? Will it be heroku url and bot token?

Leave a Reply