peter-iakovlev / Telegram

Telegram Messenger for iOS
3.23k stars 858 forks source link

Major bug in bots inline mode (test bot included) #163

Open Duiesel opened 7 years ago

Duiesel commented 7 years ago

Hello! Thanks for Your great work.

I found major bug in bots inline mode. Here http://t.me/geocodingbot the bot that working only in inline mode for test this issue.

Test case: 1) Bot got first inline query and send first answerInlineQuery contains only one InlineQueryResult (for eg with id = '123' and type InlineQueryResultLocation). Client shows it perfectly. 2) Bot got second inline query from the same user and send second answerInlineQuery contains only one InlineQueryResult (with the same id = '123' and type InlineQueryResultLocation). Client shows previous answer. But if You chose this result it contains data from second answer. 3) Bot got third inline query from the same user and send third answerInlineQuery contains several (four) InlineQueryResult (where first InlineQueryResult has got same id = '123' and type InlineQueryResultLocation other answers with different ids). Client shows first answer at the top and then list of other answers. But if You chose this first result it contains data from third query answer.

I found the problems cause: app not properly showing answers from different queries if they have got same ids.

Duiesel commented 7 years ago

Any updates?

Duiesel commented 6 years ago

Hello! Anybody here?