channels.createChannel
Erstelle eine Supergruppe/einen Kanal.
Create a [supergroup/channel](https://core.telegram.org/api/channel.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
broadcast | true | Nein | Whether to create a [channel](https://core.telegram.org/api/channel.md) |
megagroup | true | Nein | Whether to create a [supergroup](https://core.telegram.org/api/channel.md) |
for_import | true | Nein | 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 | Nein | Whether to create a [forum](https://core.telegram.org/api/forum.md) |
title | string | Ja | Kanaltitel |
about | string | Ja | Kanalbeschreibung |
geo_point | InputGeoPoint | Nein | Geogroup location, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |
address | string | Nein | Geogroup address, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |
ttl_period | int | Nein | 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. |
Antworten
Updates
MTProto RPC
- 400 · ADDRESS_INVALID – Die angegebene Geopunktadresse ist ungültig.
- 400 · CHANNELS_ADMIN_LOCATED_TOO_MUCH – Der Benutzer hat die Grenze der öffentlichen Geogruppen erreicht.
- 400 · CHANNELS_TOO_MUCH – Du bist zu vielen Kanälen/Supergruppen beigetreten.
- 400 · CHAT_ABOUT_TOO_LONG – Chatten Sie zu lange darüber.
- 500 · CHAT_INVALID – Ungültiger Chat.
- 400 · CHAT_TITLE_EMPTY – Kein Chattitel angegeben.
- 400 · TTL_PERIOD_INVALID – Der angegebene TTL-Zeitraum ist ungültig.
- 406 · USER_RESTRICTED — You're spamreported, you can't create channels or chats.