Class TdApi.SetChatMessageTtl

  • Enclosing class:
    TdApi

    public static class TdApi.SetChatMessageTtl
    extends TdApi.Function
    Changes the message TTL in a chat. Requires canDeleteMessages administrator right in basic groups, supergroups and channels Message TTL can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram.)

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • ttl

        public int ttl
        New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret.
      • CONSTRUCTOR

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

      • SetChatMessageTtl

        public SetChatMessageTtl()
        Default constructor for a function, which changes the message TTL in a chat. Requires canDeleteMessages administrator right in basic groups, supergroups and channels Message TTL can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram.)

        Returns Ok

      • SetChatMessageTtl

        public SetChatMessageTtl​(long chatId,
                                 int ttl)
        Creates a function, which changes the message TTL in a chat. Requires canDeleteMessages administrator right in basic groups, supergroups and channels Message TTL can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram.)

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        ttl - New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret.