Package dev.inmo.tgbotapi.extensions.api.chat.get

Functions

getChat
Link copied to clipboard
common
suspend fun TelegramBot.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun TelegramBot.getChat(chat: Chat): ExtendedChat
suspend fun TelegramBot.getChat(chat: CommonUser): ExtendedPrivateChatImpl
Will cast incoming dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat to a ExtendedUser with unsafe operator "as"
suspend fun TelegramBot.getChat(chat: ChannelChatImpl): ExtendedChannelChatImpl
suspend fun TelegramBot.getChat(chat: GroupChatImpl): ExtendedGroupChatImpl
suspend fun TelegramBot.getChat(chat: PrivateChatImpl): ExtendedPrivateChatImpl
suspend fun TelegramBot.getChat(chat: SupergroupChatImpl): ExtendedSupergroupChatImpl
suspend fun TelegramBot.getChat(chat: ChannelChat): ExtendedChannelChat
suspend fun TelegramBot.getChat(chat: GroupChat): ExtendedGroupChat
suspend fun TelegramBot.getChat(chat: PrivateChat): ExtendedPrivateChat
suspend fun TelegramBot.getChat(chat: PublicChat): ExtendedPublicChat
suspend fun TelegramBot.getChat(chat: SupergroupChat): ExtendedSupergroupChat
getChatAdministrators
Link copied to clipboard
common
suspend fun TelegramBot.getChatAdministrators(chatId: ChatIdentifier): List<AdministratorChatMember>
suspend fun TelegramBot.getChatAdministrators(chat: PublicChat): List<AdministratorChatMember>
getChatMembersCount
Link copied to clipboard
common
suspend fun TelegramBot.getChatMembersCount(chatId: ChatIdentifier): Int
suspend fun TelegramBot.getChatMembersCount(chat: PublicChat): Int