public static class TdApi.SetBusinessMessageIsPinned extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
businessConnectionId
Unique identifier of business connection on behalf of which the message was sent.
|
long |
chatId
The chat the message belongs to.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isPinned
Pass true to pin the message, pass false to unpin it.
|
long |
messageId
Identifier of the message.
|
| Constructor and Description |
|---|
SetBusinessMessageIsPinned()
Default constructor for a function, which pins or unpins a message sent on behalf of a business account; for bots only.
|
SetBusinessMessageIsPinned(java.lang.String businessConnectionId,
long chatId,
long messageId,
boolean isPinned)
Creates a function, which pins or unpins a message sent on behalf of a business account; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String businessConnectionId
public long chatId
public long messageId
public boolean isPinned
public static final int CONSTRUCTOR
public SetBusinessMessageIsPinned()
Returns Ok
public SetBusinessMessageIsPinned(java.lang.String businessConnectionId,
long chatId,
long messageId,
boolean isPinned)
Returns Ok
businessConnectionId - Unique identifier of business connection on behalf of which the message was sent.chatId - The chat the message belongs to.messageId - Identifier of the message.isPinned - Pass true to pin the message, pass false to unpin it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object