channels.CreateChannel
- class pyrogram.raw.functions.channels.CreateChannel
Create a supergroup/channel.
- Details:
Layer:
194
ID:
91006707
- Parameters:
title (
str
) – Channel titleabout (
str
) – Channel descriptionbroadcast (
bool
, optional) – Whether to create a channelmegagroup (
bool
, optional) – Whether to create a supergroupfor_import (
bool
, optional) – Whether the supergroup is being created to import messages from a foreign chat service using messages.initHistoryImportforum (
bool
, optional) – Whether to create a forumgeo_point (
InputGeoPoint
, optional) – Geogroup location, see here » for more info on geogroups.address (
str
, optional) – Geogroup address, see here » for more info on geogroups.ttl_period (
int
32-bit
, optional) – Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use messages.setDefaultHistoryTTL to edit this value later.
- Returns: