libtd-ktx / kotlinx.telegram.coroutines / getSupergroup
getSupergroup
suspend fun
TelegramFlow
.getSupergroup(supergroupId:
Int
):
Supergroup
Suspend function, which returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot.
Parameters
supergroupId
- Supergroup or channel identifier.
Return Supergroup Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.