Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Message Queue #142

Closed
syafiquel opened this issue Jul 24, 2021 · 2 comments
Closed

Implementing Message Queue #142

syafiquel opened this issue Jul 24, 2021 · 2 comments
Assignees
Labels
question A question about how the program works.

Comments

@syafiquel
Copy link

The bot is currently getting message updates from getUpdates method in Bot class instead of Updater class. I wanted to implement MessageQueue but as far as I know it can be used through Updater class. My question is it possible for me to add MessageQueue to the current getUpdates approach from the Bot i am using?

@Steffo99 Steffo99 added the question A question about how the program works. label Jul 24, 2021
@Steffo99 Steffo99 self-assigned this Jul 24, 2021
@Steffo99
Copy link
Owner

Do you mean this MessageQueue?

It's deprecated (python-telegram-bot/python-telegram-bot#2139), it doesn't seem a good idea to me...

In any case, I think refactoring the bot to use an Updater instead of my custom framework might be possible...
Perhaps editing core.py might be enough?

@syafiquel
Copy link
Author

Do you mean this MessageQueue?

It's deprecated (python-telegram-bot/python-telegram-bot#2139), it doesn't seem a good idea to me...

In any case, I think refactoring the bot to use an Updater instead of my custom framework might be possible...
Perhaps editing core.py might be enough?

Yeah I am thinking so but then I just discovered a way to add MessageQueue object wtihout changing the codebase. In my use case it probably might work even though is is now deprecated, Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about how the program works.
Projects
None yet
Development

No branches or pull requests

2 participants