Chat.archive()

async Chat.archive()[source]

Bound method archive of Chat.

Use as a shortcut for:

await client.archive_chats(chat_id=chat_id)

Example

await chat.archive()
Returns:

True on success.

Raises:

RPCError – In case of a Telegram RPC error.