Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

answerInlineQuery start_parameter problem #27880

Open
parham2013 opened this issue May 6, 2024 · 1 comment
Open

answerInlineQuery start_parameter problem #27880

parham2013 opened this issue May 6, 2024 · 1 comment
Labels

Comments

@parham2013
Copy link

Steps to reproduce

in answerInlineQuery, when you give start_parameter a value, after clicking on the button link in desktop, you will be redirected to the bot private chat, start parameter will be send, but then you get redirected back to the page where you were using the inline command

Expected behaviour

image

so in this image, when you click on Learn more(InlineQueryResultsButton), I expect to go to my bot's private chat, and bot gives me an answer according to the start parameter that was sent via answerInlineQuery:

 await ctx.answerInlineQuery(results, {
   button: {
     text: "Learn more",
     start_parameter: `tutorial`,
   },
 });

(also Learn more(InlineQueryResultsButton) just straight away starts the bot, there's no start button like so)

image

above start button comes from a inline_keyboard like this:

image

inline_keyboard: [
    [
        {
            text: "Learn more",
            url: `https://t.me/{botusername}?start={flag}`,
        },
    ],
]

Actual behaviour

after I click on learn more(answerInlineQuery, first one), I get sent to my bots private page, start is sent automatically, without me actually typing or clicking a start button, and then I immediately get redirected back to the page that i clicked on Learn more(answerInlineQuery), and if I click on Learn more(answerInlineQuery) again immediately, this time i get redirected to my bot's private page, and this time, no flag is sent. but if I change chats and then get back and click on learn more, first problem occurs again, without the second part that doesn't send the flag.

Operating system

tested on windows10 and arch linux

Version of Telegram Desktop

5.0.1 X64

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@parham2013 parham2013 added the bug label May 6, 2024
@parham2013
Copy link
Author

It seems, on android, first problem occurs repetitively, and on ios there seems to be no problem and everything seems fine, android12, Iphone13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant