Class TdApi.GetPreparedKeyboardButton

Enclosing class:
TdApi

public static class TdApi.GetPreparedKeyboardButton extends TdApi.Function<TdApi.KeyboardButton>
Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.

Returns KeyboardButton

  • Field Details

    • botUserId

      public long botUserId
      Identifier of the bot that created the button.
    • preparedButtonId

      public String preparedButtonId
      Identifier of the prepared button.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetPreparedKeyboardButton

      public GetPreparedKeyboardButton()
      Default constructor for a function, which returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.

      Returns KeyboardButton

    • GetPreparedKeyboardButton

      public GetPreparedKeyboardButton(long botUserId, String preparedButtonId)
      Creates a function, which returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.

      Returns KeyboardButton

      Parameters:
      botUserId - Identifier of the bot that created the button.
      preparedButtonId - Identifier of the prepared button.
  • Method Details