public static class TdApi.SendChatAction extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
TdApi.ChatAction |
action
The action description; pass null to cancel the currently active action.
|
java.lang.String |
businessConnectionId
Unique identifier of business connection on behalf of which to send the request; for bots only.
|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageThreadId
If not 0, the message thread identifier in which the action was performed.
|
| Constructor and Description |
|---|
SendChatAction()
Default constructor for a function, which sends a notification about user activity in a chat.
|
SendChatAction(long chatId,
long messageThreadId,
java.lang.String businessConnectionId,
TdApi.ChatAction action)
Creates a function, which sends a notification about user activity in a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageThreadId
public java.lang.String businessConnectionId
public TdApi.ChatAction action
public static final int CONSTRUCTOR
public SendChatAction()
Returns Ok
public SendChatAction(long chatId,
long messageThreadId,
java.lang.String businessConnectionId,
TdApi.ChatAction action)
Returns Ok
chatId - Chat identifier.messageThreadId - If not 0, the message thread identifier in which the action was 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object