Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
527 stars 261 forks source link

Implementing Message Queue #142

Closed syafiquel closed 3 years ago

syafiquel commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.