Class TdApi.UnpinChatMessage

Enclosing class:
TdApi

public static class TdApi.UnpinChatMessage
extends TdApi.Function
Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat.
    • messageId

      public long messageId
      Identifier of the removed pinned message.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • 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

      public UnpinChatMessage​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details