F
F
Famper Wasteland2020-05-26 17:04:10
Python
Famper Wasteland, 2020-05-26 17:04:10

What is the best module for a game bot - Telegram?

Hello - Jacque Fresco


Recently, I thought about creating a bot for Telegram, but with a gaming theme. Here's what I think is the best way to do it. And what would be better.

Skills:
  • I know the basics of Python development
  • I know how to manage a database (MongoDB) directly in Python
  • I studied Tele-Bot, and I know its very basic basics


With Tele-Bot, I once again have problems. I can send/edit/delete messages. But here it is impossible to build adequate scenarios of actions.

For example:
I need the bot to send a message every 30 minutes. And it was an asynchronous action. This, alas, I cannot do.

Therefore, I would like to look at the source codes of game bots for Telegram

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2020-05-26
@dr_fap

I need the bot to send a message every 30 minutes. And it was an asynchronous action. This, alas, I cannot do.

Well, for this you need to know asynchronous programming in Python. Absolutely all possible information with examples can be found here .
Of course, provided that your statement about knowledge of the basics of Python development is true. It's not just the syntax that's meant here.
After that, you can take any asynchronous library for Telegram, for example aiogram . The documentation has all the necessary information. Their repository is full of examples, including one on using the state machine , which will come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question