libtd-ktx / kotlinx.telegram.coroutines / sendChatSetTtlMessage
sendChatSetTtlMessage
suspend fun TelegramFlow.sendChatSetTtlMessage(chatId: Long, ttl: Int): Message
Suspend function, which changes the current TTL setting (sets a new self-destruct timer) in a secret chat and sends the corresponding message.
Parameters
chatId - Chat identifier.
ttl - New TTL value, in seconds.
Return Message Describes a message.