public static class TdApi.PinChatMessage extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableNotification
True, if there must be no notification about the pinned message.
|
long |
messageId
Identifier of the new pinned message.
|
boolean |
onlyForSelf
True, if the message needs to be pinned for one side only; private chats only.
|
Constructor and Description |
---|
PinChatMessage()
Default constructor for a function, which pins a message in a chat; requires canPinMessages rights or canEditMessages rights in the channel.
|
PinChatMessage(long chatId,
long messageId,
boolean disableNotification,
boolean onlyForSelf)
Creates a function, which pins a message in a chat; requires canPinMessages rights or canEditMessages rights in the channel.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public 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
- True, if there must be no notification about the pinned message. Notifications are always disabled in channels and private chats.onlyForSelf
- True, if the message needs to be pinned for one side only; private chats only.public int getConstructor()
getConstructor
in class TdApi.Function