channels.CreateChannel
- class pyrogram.raw.functions.channels.CreateChannel
Create a supergroup/channel.
- Details:
Layer:
223ID:
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 (
int32-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:
TL Schema
channels.createChannel#91006707
flags:#
broadcast:flags.0?true
megagroup:flags.1?true
for_import:flags.3?true
forum:flags.5?true
title:string
about:string
geo_point:flags.2?InputGeoPoint
address:flags.2?string
ttl_period:flags.4?int
= Updates
Parameter Tree
true (optional)true (optional)true (optional)true (optional)stringstringInputGeoPoint (optional)InputGeoPointEmptyInputGeoPointdoubledoubleint (optional)string (optional)int (optional)Example
await app.invoke(
CreateChannel(
broadcast=None,
megagroup=None,
for_import=None,
forum=None,
title="text",
about="text",
geo_point=InputGeoPointEmpty(),
address="text",
ttl_period=0,
)
)