mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 16:05:28 +00:00
15 lines
597 B
Kotlin
15 lines
597 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat.get
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.chat.get.GetChatMembersCount
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PublicChat
|
|
|
|
suspend fun TelegramBot.getChatMembersCount(
|
|
chatId: ChatIdentifier
|
|
) = execute(GetChatMembersCount(chatId))
|
|
|
|
suspend fun TelegramBot.getChatMembersCount(
|
|
chat: PublicChat
|
|
) = getChatMembersCount(chat.id)
|