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

Hi! #5

@Mrmartins06

Description

@Mrmartins06

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions