View Source ExTDLib.Method.CreateNewSupergroupChat (ExTDLib v0.0.4)

Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat. Returns object_ptr<Chat>.

NameTypeDescription
titlestringTitle of the new chat; 1-128 characters.
is_forumboolPass true to create a forum supergroup chat.
is_channelboolPass true to create a channel chat; ignored if a forum is created.
descriptionstringChat description; 0-255 characters.
locationchatLocationChat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
message_auto_delete_timenumberMessage 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.
for_importboolPass true to create a supergroup for importing messages using importMessages.

More details on telegram's documentation.