- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
int
New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret. -
Constructor Summary
ConstructorDescriptionChanges the message TTL in a chat.SetChatMessageTtl
(long chatId, int ttl) Changes the message TTL in a chat.SetChatMessageTtl
(DataInput input) Changes the message TTL 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. -
ttl
public int ttlNew 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.) ReturnsOk
-
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.) ReturnsOk
- 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
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.) 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()
-