Chat.set_description()

Chat.set_description()

Bound method set_description of Chat.

Use as a shortcut for:

await client.set_chat_description(
    chat_id=chat_id,
    description=description
)

Example

await chat.set_chat_description("Don't spam!")
Parameters:

description (``str``) – New chat description, 0-255 characters.

Returns:

``bool`` (True on success.)

Raises:
  • ValueError – If a chat_id doesn’t belong to a supergroup or a channel.:

  • RPCError –