- 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
Identifier uniquely determining type of the object.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
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 CONSTRUCTORIdentifier uniquely determining type of the object.- 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
- Chat identifier.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.Returns
Ok
-
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
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-