Module tdlight.api

Class TdApi.SetChatMessageTtl

Enclosing class:
TdApi

public static final class TdApi.SetChatMessageTtl extends TdApi.Function<TdApi.Ok>
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 Details

    • 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
      See Also:
  • Constructor Details

    • SetChatMessageTtl

      public SetChatMessageTtl()
      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)
      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 - long Chat identifier.
      ttl - int New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret.
    • SetChatMessageTtl

      public SetChatMessageTtl(DataInput input) throws IOException
      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

      Throws:
      IOException
  • Method Details