menu
tdlib package
documentation
td_api.dart
SetChatMessageTtl class
SetChatMessageTtl class
dark_mode
light_mode
SetChatMessageTtl
class
Inheritance
Object
TdFunction
SetChatMessageTtl
Constructors
SetChatMessageTtl
({
required
int
chatId
,
required
int
ttl
})
Changes the message TTL in a chat. Requires can_delete_messages 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)
const
Properties
chatId
→
int
chatId
Chat identifier
final
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
ttl
→
int
ttl
New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret
final
Methods
copyWith
(
{
int
?
chatId
,
int
?
ttl
})
→
SetChatMessageTtl
getConstructor
(
)
→
String
override
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson
(
[
dynamic
extra
])
→
Map
<
String
,
dynamic
>
override
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
Constants
CONSTRUCTOR
→ const
String
tdlib package
documentation
td_api
SetChatMessageTtl class
td_api library