schafezp / karmabot

A telegram bot designed for group chats to allow users to upvote and downvote content similar to reddit.
https://schafezp.github.io/karmabot/
MIT License
6 stars 1 forks source link

Allow user to interactively check karma rankings of chats they are in through 1 on 1 message with bot #9

Closed schafezp closed 6 years ago

schafezp commented 6 years ago

Is your feature request related to a problem? Please describe. Currently to check the karma ranking for a chat you are in, you have to use /showkarma in that chat. Especially when there are more users this can cause a large list to be displayed which interrupts conversations currently happening in chat. Therefore we need a 1 on 1 way to get this information from the bot. Describe the solution you'd like An interactive "custom keyboard" conversation style solution similar to the way BotFather can be configured. There will be an entrypoint command such as /getkarma that a user will send to the bot in a 1 on 1 message. The bot will respond with a custom keyboard that shows all the chats that user is in (probably sorted on how engaged that user is with each chat). The user will press the keyboard entry for the chat and then the result of the corresponding /showkarma is returned to the user. This means the user never has to type in arguments for a command which is useful since Chat Title can include special characters that are annoying to type

Additional context https://github.com/python-telegram-bot/python-telegram-bot/wiki/Code-snippets#keyboard-menus Here is a snippet for a keyboard menu that could be used for this interface. Once we implement keyboard menus for this feature we might want to revisit other functionality and possibly make it accessible through user friendly keyboards.