public static class TdApi.PinChatMessage extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableNotification
Pass true to disable notification about the pinned message.
|
long |
messageId
Identifier of the new pinned message.
|
boolean |
onlyForSelf
Pass true to pin the message only for self; private chats only.
|
| Constructor and Description |
|---|
PinChatMessage()
Default constructor for a function, which pins a message in a chat.
|
PinChatMessage(long chatId,
long messageId,
boolean disableNotification,
boolean onlyForSelf)
Creates a function, which pins a message 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 messageId
public boolean disableNotification
public boolean onlyForSelf
public static final int CONSTRUCTOR
public PinChatMessage()
Returns Ok
public PinChatMessage(long chatId,
long messageId,
boolean disableNotification,
boolean onlyForSelf)
Returns Ok
chatId - Identifier of the chat.messageId - Identifier of the new pinned message.disableNotification - Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats.onlyForSelf - Pass true to pin the message only for self; private chats only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object