Chat.set_message_auto_delete_time()#

Chat.set_message_auto_delete_time()#

Bound method set_message_auto_delete_time of Chat.

Use as a shortcut for:

await client.set_chat_message_auto_delete_time(
    chat_id=chat_id,
    message_auto_delete_time=ttl_seconds
)
Parameters:

message_auto_delete_time (int) – New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren’t deleted automatically.

Example

await chat.set_message_auto_delete_time(86400)
Returns:

Message – On success, the generated service message is returned.