Skip to content
Back to top
View this page

# KeyboardButtonRequestManagedBot

class telegram.KeyboardButtonRequestManagedBot(request_id, suggested_name=None, suggested_username=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object defines the parameters for the creation of a managed bot. Information about the created bot will be shared with the bot using the update managed_bot and a `telegram.Message` with the field `telegram.Message.managed_bot_created`.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `request_id` is equal.

  Available In

  `telegram.KeyboardButton.request_managed_bot`

  Added in version 22.8.

  Parameters:

    - request_id (`int`) – Signed 32-bit identifier of the request. Must be unique within the message.

    - suggested_name (`str`, optional) – Suggested name for the bot.

    - suggested_username (`str`, optional) – Suggested username for the bot.

  request_id

    Signed 32-bit identifier of the request. Must be unique within the message.

    Type:

      `int`

  suggested_name

    Optional. Suggested name for the bot.

    Type:

      `str`

  suggested_username

    Optional. Suggested username for the bot.

    Type:

      `str`