SetChatMessageTtl constructor

const SetChatMessageTtl({
  1. required int chatId,
  2. 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)

Implementation

const SetChatMessageTtl({
  required this.chatId,
  required this.ttl,
});