Class TdApi.SendChatAction

Enclosing class:
TdApi

public static class TdApi.SendChatAction extends TdApi.Function<TdApi.Ok>
Sends a notification about user activity in a chat.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • topicId

      public TdApi.MessageTopic topicId
      Identifier of the topic in which the action is performed.
    • businessConnectionId

      public String businessConnectionId
      Unique identifier of business connection on behalf of which to send the request; for bots only.
    • action

      public TdApi.ChatAction action
      The action description; pass null to cancel the currently active action.
    • CONSTRUCTOR

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

    • SendChatAction

      public SendChatAction()
      Default constructor for a function, which sends a notification about user activity in a chat.

      Returns Ok

    • SendChatAction

      public SendChatAction(long chatId, TdApi.MessageTopic topicId, String businessConnectionId, TdApi.ChatAction action)
      Creates a function, which sends a notification about user activity in a chat.

      Returns Ok

      Parameters:
      chatId - Chat identifier.
      topicId - Identifier of the topic in which the action is performed.
      businessConnectionId - Unique identifier of business connection on behalf of which to send the request; for bots only.
      action - The action description; pass null to cancel the currently active action.
  • 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