timgarrels / gameprog-detective-server

Server Komponente für "A Detecitve Game" des Gameprog Seminars
https://hpi.de/studium/lehrveranstaltungen/it-systems-engineering-ma/lehrveranstaltung/wise-19-20-2889-game-programming.html
3 stars 0 forks source link

Bot answers to user replys that were typed in the keyboard #11

Closed timgarrels closed 4 years ago

timgarrels commented 4 years ago

If a users uses the keyboard to type an answer the bot reacts to it.

This can be fixed by saving the latest reply options into the user_data dict provided by the telegram API and only reacting to replies from that option list.

The user could still type the replies we provide in the buttons, but that shouldn't be a problem