- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
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. -
Constructor Summary
ConstructorDescriptionChanges the message auto-delete or self-destruct (for secret chats) time in a chat.SetChatMessageAutoDeleteTime
(long chatId, int messageAutoDeleteTime) Changes the message auto-delete or self-destruct (for secret chats) time in a chat.Changes the message auto-delete or self-destruct (for secret chats) time in a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
messageAutoDeleteTime
public int messageAutoDeleteTimeNew 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). ReturnsOk
-
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). ReturnsOk
- 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
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). ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-