Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Hi! #5

Open
Mrmartins06 opened this issue Dec 12, 2023 · 0 comments
Open

Hi! #5

Mrmartins06 opened this issue Dec 12, 2023 · 0 comments

Comments

@Mrmartins06
Copy link

Hi!
To allow implementing Buttons with Inline mode support we need to make callback_data parameter not mandatory. From docs https://core.telegram.org/bots/api?operationName=&query=&variables=&access_token=6592911239:AAHYHr3IeQwqd6MswUI6I0q2Wm6m25V1CTw

InlineKeyboardButton
This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

So before this PR setting switch_inline_query param will not affect the result because always existing callback_data param will suppress it.

Originally posted by @vdomah in botman/driver-telegram#85

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

No branches or pull requests

1 participant