libtd-ktx / kotlinx.telegram.coroutines / deleteSupergroup
deleteSupergroup
suspend fun
TelegramFlow
.deleteSupergroup(supergroupId:
Int
):
Unit
Suspend function, which deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires owner privileges in the supergroup or channel. Chats with more than 1000 members can’t be deleted using this method.
Parameters
supergroupId
- Identifier of the supergroup or channel.