Chat.join()#

Chat.join()#

Bound method join of Chat.

Use as a shortcut for:

await client.join_chat(123456789)

Example

await chat.join()

Note

This only works for public groups, channels that have set a username or linked chats.

Returns:

Chat – On success, a chat object is returned.

Raises:

RPCError – In case of a Telegram RPC error.