Chat.set_ttl()#

Chat.set_ttl()#

Bound method set_ttl of Chat.

Use as a shortcut for:

await client.set_chat_ttl(
    chat_id=chat_id,
    ttl_seconds=ttl_seconds
)

Example

await chat.set_ttl(86400)
Returns:

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