Module tdlight.api

Class TdApi.SetChatMessageAutoDeleteTime

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.SetChatMessageAutoDeleteTime
Enclosing class:
TdApi

public static final class TdApi.SetChatMessageAutoDeleteTime extends TdApi.Function<TdApi.Ok>
Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires changeInfo administrator right in basic groups, supergroups and channels Message auto-delete time 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.
    • messageAutoDeleteTime

      public int messageAutoDeleteTime
      New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetChatMessageAutoDeleteTime

      public SetChatMessageAutoDeleteTime()
      Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires changeInfo administrator right in basic groups, supergroups and channels Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). Returns Ok
    • SetChatMessageAutoDeleteTime

      public SetChatMessageAutoDeleteTime(long chatId, int messageAutoDeleteTime)
      Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires changeInfo administrator right in basic groups, supergroups and channels Message auto-delete time 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.
      messageAutoDeleteTime - int New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically.
    • SetChatMessageAutoDeleteTime

      public SetChatMessageAutoDeleteTime(DataInput input) throws IOException
      Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires changeInfo administrator right in basic groups, supergroups and channels Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). Returns Ok
      Throws:
      IOException
  • Method Details