- Enclosing class:
- TdApi
Removes a pinned message from a chat;
requires canPinMessages rights in the
group or canEditMessages rights in the channel.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat.static final int
long
Identifier of the removed pinned message. -
Constructor Summary
ConstructorDescriptionRemoves a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.UnpinChatMessage
(long chatId, long messageId) Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.UnpinChatMessage
(DataInput input) Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat. -
messageId
public long messageIdIdentifier of the removed pinned message. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
UnpinChatMessage
public UnpinChatMessage()Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.Returns
Ok
-
UnpinChatMessage
public UnpinChatMessage(long chatId, long messageId) Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.Returns
Ok
- Parameters:
chatId
- long Identifier of the chat.messageId
- long Identifier of the removed pinned message.
-
UnpinChatMessage
Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.Returns
Ok
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-