Manage all bot messages containing inline keyboards and callback queries in a database table
CrsiX opened this issue · comments
Currently, the bot recognizes callback queries by their internal ID. The message the callback query originated from is luckily contained in the Update object for that callback query. Therefore, this reference is currently used to edit the message. However, when multiple messages and other chats (by the forwarding mechanism, see #7) are involved, this doesn't work anymore. It requires the bot to keep track of all such messages in all chats.
Adjusting the database table and the current code base is required.
The database contains a table collective_messages
now. The code is adjusted accordingly to make this feature work.
Note that this is currently only supported for collective operations (communisms / payments). Other features are not expected to need this featuer. If they do, someone should open a new issue.