TelegramSwift icon indicating copy to clipboard operation
TelegramSwift copied to clipboard

WebApp switchInlineQuery switch to bot instead of current input

Open Shtopor opened this issue 1 year ago • 1 comments

According to the documentation, the window.Telegram.WebApp.switchInlineQuery() function, if the choose_chat_types parameter was not passed, should insert the contents of query into the current input field from which it was called. In the iOS application, everything works correctly, but in the desktop application, instead of the current chat, query is inserted into the chat window with the bot.

The bug is easily reproduced even with @DurgerKingBot

Wrong:

mac1mac2

Correct:

ios1ios2

Shtopor avatar Aug 14 '24 17:08 Shtopor

same

weifpeng avatar Jan 03 '25 05:01 weifpeng