Category Archives: Flask

Polybot Project: a Simple Pretty Logger


In a series of blog posts “Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design” (1-8) (see references) we discussed how we could design a multi-bot/multi-language webhook handler to host some Telegram bots each of which could speak any … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (8)


Multiple-Language Functionality In this post, we will add the multiple languages functionality to the polybot project so that our bots could speak a few languages based on the corresponding user’s preference. The plan is that a bot speaks the language … Continue reading

Posted in Flask, Python, Web | Tagged , , , , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (7)


Setting up Multi-Bot Design – polybot project From this blog post after, we focus on a multi-bot design: polybot project. The first step is to define our bots. Maybe the easiest way is to use a dedicated config file in … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (6)


6 – Providing Decorator for Bot Commands Using a Dedicated Message Text Processing Class A good practice to design a bot command processing system is that we define a central engine which looks for the bot commands and settings automatically … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (5)


5 – Adding Commands in Single-Bot Design Let your mind fly! Let it surf over the clouds! There is no limitation on imagination on what a bot in the Telegram system can do for us. You want to know what … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (4)


4 – Setting up the Webhook for a Single-Bot English Speaking Bot To be able to understand and follow this post properly, you should have enough skills in python programming, and you must have some acquaintance with Flask web framework … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (3)


Part 3 – Some bot programming practice To start handling your bot with programming codes … as sci-tech robot movies say, uploading software in the robot! … you would need an internet connection with the ability to connect to the … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (2)


Part 2 – Sample operational bots There are some bots available for full functional serious applications. There are also some of them available for user test. Merex is one of them. You could access Merex by opening this link in … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , | Leave a comment

Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (1)


Part 1 – The non-programming part If you are new to the concept of the Telegram bots and how you could write programs to manipulate them, you could review these references before you read this article: https://core.telegram.org/bots https://core.telegram.org/bots/api This article … Continue reading

Posted in Flask, Python, Telegram Bot | Tagged , , , , , | Leave a comment