Package org.drinkless.tdlib
Class TdApi.SetChatMessageTtl
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetChatMessageTtl
-
- Enclosing class:
- TdApi
public static class TdApi.SetChatMessageTtl extends TdApi.Function
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
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.intttlNew TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret.
-
Constructor Summary
Constructors Constructor Description SetChatMessageTtl()Default constructor for a function, which changes the message TTL in a chat.SetChatMessageTtl(long chatId, int ttl)Creates a function, which changes the message TTL in a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetChatMessageTtl
public SetChatMessageTtl()
Default constructor for a function, which 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)Creates a function, which 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- Chat identifier.ttl- New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-