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.
This bot has been built using python-telegram-bot the popular wrapper for Telegram's Bot API.
Check out the source code of this bot on GitHub. Stars ⭐ and Contributions 🔥 are most welcome.
aahnik
/
run-py-bot
A telegram bot that runs python code. Evaluate pythonic expressions on the go, right from your chat. Find on telegram @runPython_bot
run-py-bot
Run python code from your telegram chat!
Find on Telegram 🔎
You can find this bot on Telegram as @runPython_bot.
This bot is deployed on Python Anywhere free Beginner Account. You may check whether the bot is alive or not, by clicking on the start command. If the bot responds, it is alive.
Featured in 😍
- Tweet by Dev Community
- Tweet by The Python Dev
- Dor Moshe's Newsletter
- My YouTube Video Chatting with Python
Example Use 🔀
You may use pythonic expressions to easily calculate any complex problem. Or you may test your algorithms on the go.
Changelog 🔖
See the Releases tab for more info.
Develop
Read the docstrings in the code for details. You will find lots of helpful links to stack overflow and documentation.
Some useful links:
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 help()
function.
For example: try giving help(str.upper)
.
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.
And if you have any questions, you may ask in the comments below, or create an issue in the GitHub repo of this project.
Discussion (2)
Great work!
I think /e should be default mode, like repl
Would implement that soon. If you are on GitHub, contributions are welcome