Saving usernames #2

Closed
opened 2018-07-03 11:01:53 +00:00 by WaffleLapkin · 2 comments
WaffleLapkin commented 2018-07-03 11:01:53 +00:00 (Migrated from github.com)

For some reason banofbot save usernames, so if I have used this bot and then change my username, bot will display my old username (even in new "polls").

Telegram bot api provides getChatMember method (with 2 args: chat id and user id), so I think the best way to solve that bug is save user ids when button is pressed and when final vote received, use getChatMember method for all user ids to get current usernames.

For some reason banofbot save usernames, so if I have used this bot and then change my username, bot will display my old username (even in new "polls"). Telegram bot api provides `getChatMember` method (with 2 args: `chat id` and `user id`), so I think the best way to solve that bug is save user _ids_ when button is pressed and when final vote received, use `getChatMember` method for all user ids to get current usernames.
backmeupplz commented 2018-07-16 15:22:47 +00:00 (Migrated from github.com)

Good idea, thanks!

Good idea, thanks!
backmeupplz commented 2018-08-02 02:41:13 +00:00 (Migrated from github.com)

Done :)

Done :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/banofbot#2
No description provided.