channels.createChannel
Create a supergroup/channel.
Create a [supergroup/channel](https://core.telegram.org/api/channel.md).
| Name | Type | Required | Description |
|---|---|---|---|
broadcast | true | No | Whether to create a [channel](https://core.telegram.org/api/channel.md) |
megagroup | true | No | Whether to create a [supergroup](https://core.telegram.org/api/channel.md) |
for_import | true | No | Whether the supergroup is being created to import messages from a foreign chat service using [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |
forum | true | No | Whether to create a [forum](https://core.telegram.org/api/forum.md) |
title | string | Yes | Channel title |
about | string | Yes | Channel description |
geo_point | InputGeoPoint | No | Geogroup location, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |
address | string | No | Geogroup address, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |
ttl_period | int | No | 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](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later. |
Replies
Updates
MTProto RPC
- 400 · ADDRESS_INVALID — The specified geopoint address is invalid.
- 400 · CHANNELS_ADMIN_LOCATED_TOO_MUCH — The user has reached the limit of public geogroups.
- 400 · CHANNELS_TOO_MUCH — You have joined too many channels/supergroups.
- 400 · CHAT_ABOUT_TOO_LONG — Chat about too long.
- 500 · CHAT_INVALID — Invalid chat.
- 400 · CHAT_TITLE_EMPTY — No chat title provided.
- 400 · TTL_PERIOD_INVALID — The specified TTL period is invalid.
- 406 · USER_RESTRICTED — You're spamreported, you can't create channels or chats.