I made a bot that speaks Python. Don't believe it? Check it out on Telegram @runPython_bot.
This bot basically runs your Python code or evaluates a valid pythonic expression and returns the result.
For example, you say
'yo'*5 and the bot replies
yoyoyoyoyo. Cool, isn't it?
Take a look at this gif.
Check out the source code of this bot on GitHub. Stars ⭐ and Contributions 🔥 are most welcome.
A telegram bot that runs python code. Evaluate pythonic expressions on the go, right from your chat.
Run python code from your telegram chat
UPDATE I am no longer running this bot on my server. Please deploy your own instance to use.
- Tweet by Dev Community
- Tweet by The Python Dev
- Dor Moshe's Newsletter
- My YouTube Video Chatting with Python
You may use pythonic expressions to easily calculate any complex problem. Or you may test your algorithms on the go.
How to run
You can easily run your own instance of the bot.
You can run on any OS (windows/mac/linux). For better reliability, you may deploy to a VPS like Digital Ocean Droplet. You can even run on Android, using the Termux app.
Open your terminal and follow the instructions to run the bot.
Note: Use python 3.8
Make sure you have
# the following commands should not produce error git --version python…
I don't want to write much. Explore the bot yourself.
And definitely try to make it do some hard work by giving it some long calculations or maybe try infinite loops.
You may access Python's docs through the bot by running the
For example: try giving
If you are giving an expression to the bot like
4 <= 5 please use the
/e command, like
/e 4 <= 5.
Don't forget to rate this bot on BotsArchive
Why waiting? Try out the bot.
Share the bot in your telegram groups and channels.