create_channel()#

Client.create_channel()#

Create a new broadcast channel.

Usable by Users Bots
Parameters:
  • title (str) – The channel title.

  • description (str, optional) – The channel description.

  • message_auto_delete_time (int, optional) – Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren’t deleted automatically.

Returns:

Chat – On success, a chat object is returned.

Example

await app.create_channel("Channel Title", "Channel Description")