Class TdApi.PinSupergroupMessage

  • Enclosing class:
    TdApi

    public static class TdApi.PinSupergroupMessage
    extends TdApi.Function
    Pins a message in a supergroup or channel; requires appropriate administrator rights in the supergroup or channel.

    Returns Ok

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean disableNotification
      True, if there should be no notification about the pinned message.
      long messageId
      Identifier of the new pinned message.
      int supergroupId
      Identifier of the supergroup or channel.
    • Constructor Summary

      Constructors 
      Constructor Description
      PinSupergroupMessage()
      Default constructor.
      PinSupergroupMessage​(int supergroupId, long messageId, boolean disableNotification)
      Constructor for initialization of all fields.
    • Field Detail

      • supergroupId

        public int supergroupId
        Identifier of the supergroup or channel.
      • messageId

        public long messageId
        Identifier of the new pinned message.
      • disableNotification

        public boolean disableNotification
        True, if there should be no notification about the pinned message.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PinSupergroupMessage

        public PinSupergroupMessage()
        Default constructor.
      • PinSupergroupMessage

        public PinSupergroupMessage​(int supergroupId,
                                    long messageId,
                                    boolean disableNotification)
        Constructor for initialization of all fields.
        Parameters:
        supergroupId - Identifier of the supergroup or channel.
        messageId - Identifier of the new pinned message.
        disableNotification - True, if there should be no notification about the pinned message.