Class TdApi.SavePreparedInlineMessage

Enclosing class:
TdApi

public static class TdApi.SavePreparedInlineMessage extends TdApi.Function<TdApi.PreparedInlineMessageId>
Saves an inline message to be sent by the given user; for bots only.

Returns PreparedInlineMessageId

  • Field Details

    • userId

      public long userId
      Identifier of the user.
    • result

      The description of the message.
    • chatTypes

      public TdApi.TargetChatTypes chatTypes
      Types of the chats to which the message can be sent.
    • CONSTRUCTOR

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

    • SavePreparedInlineMessage

      public SavePreparedInlineMessage()
      Default constructor for a function, which saves an inline message to be sent by the given user; for bots only.

      Returns PreparedInlineMessageId

    • SavePreparedInlineMessage

      public SavePreparedInlineMessage(long userId, TdApi.InputInlineQueryResult result, TdApi.TargetChatTypes chatTypes)
      Creates a function, which saves an inline message to be sent by the given user; for bots only.

      Returns PreparedInlineMessageId

      Parameters:
      userId - Identifier of the user.
      result - The description of the message.
      chatTypes - Types of the chats to which the message can be sent.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR