zeroone2numeral2 / sticker-thief

Telegram bot to build custom sticker packs
https://t.me/stickersthiefbot
MIT License
68 stars 42 forks source link

Pack creation module and stickers addition module should share the same conversation handler #30

Closed zeroone2numeral2 closed 4 years ago

zeroone2numeral2 commented 4 years ago

Right now, each one of these register its own conversation number. The problem is that there is a lot of redundancy with the "stickers addition" steps, because they are shared by both the ConversationHandlers.

They can be easily integrated in one conversation, with two/three entry points (/add, /create and /createanimated)

The files with the callbacks should stay, but there should be a new file containing the ConversationHandler initialization, that will import all the necessary callbacks from the other two files