libtd-ktx / kotlinx.telegram.coroutines / getChatStatisticsUrl
getChatStatisticsUrl
suspend fun
TelegramFlow
.getChatStatisticsUrl(chatId:
Long
, parameters:
String
?, isDark:
Boolean
):
HttpUrl
Suspend function, which returns an HTTP URL with the chat statistics. Currently this method can be used only for channels. Can be used only if SupergroupFullInfo.canViewStatistics == true.
Parameters
chatId
- Chat identifier.
parameters
- Parameters from "tg://statsrefresh?params=**" link.
isDark
- Pass true if a URL with the dark theme must be returned.
Return HttpUrl Contains an HTTP URL.