libtd-ktx / kotlinx.telegram.coroutines / createNewSupergroupChat
createNewSupergroupChat
suspend fun TelegramFlow.createNewSupergroupChat(title: String?, isChannel: Boolean, description: String?, location: ChatLocation?): Chat
Suspend function, which creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat.
Parameters
title - Title of the new chat; 1-128 characters.
isChannel - True, if a channel chat should be created.
description - Chat description; 0-255 characters.
location - Chat location if a location-based supergroup is being created.
Return Chat A chat. (Can be a private chat, basic group, supergroup, or secret chat.)