Module tdlight.api

Class TdApi.UnpinChatMessage

Enclosing class:
TdApi

public static final class TdApi.UnpinChatMessage extends TdApi.Function<TdApi.Ok>
Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel. Returns Ok
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat.
    static final int
     
    long
    Identifier of the removed pinned message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Removes 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.
    Removes a pinned message from a chat; requires canPinMessages rights in the group or canEditMessages rights in the channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

    Methods inherited from class it.tdlight.jni.TdApi.Function

    toString

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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:
  • 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
      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