Class TdApi.SavePreparedKeyboardButton

Enclosing class:
TdApi

public static class TdApi.SavePreparedKeyboardButton extends TdApi.Function<TdApi.Text>
Saves a keyboard button to be shown to the given user; for bots only.

Returns Text

  • Field Details

    • userId

      public long userId
      Identifier of the user.
    • button

      public TdApi.KeyboardButton button
      The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.
    • CONSTRUCTOR

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

    • SavePreparedKeyboardButton

      public SavePreparedKeyboardButton()
      Default constructor for a function, which saves a keyboard button to be shown to the given user; for bots only.

      Returns Text

    • SavePreparedKeyboardButton

      public SavePreparedKeyboardButton(long userId, TdApi.KeyboardButton button)
      Creates a function, which saves a keyboard button to be shown to the given user; for bots only.

      Returns Text

      Parameters:
      userId - Identifier of the user.
      button - The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.
  • Method Details