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

Functions

Link copied to clipboard
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
Link copied to clipboard
suspend fun TelegramBot.getChatAdministrators(chatId: ChatIdentifier): List<AdministratorChatMember>
suspend fun TelegramBot.getChatAdministrators(chat: PublicChat): List<AdministratorChatMember>
Link copied to clipboard
suspend fun TelegramBot.getChatMemberCount(chatId: ChatIdentifier): Int
suspend fun TelegramBot.getChatMemberCount(chat: PublicChat): Int
Link copied to clipboard
suspend fun TelegramBot.getChatMenuButton(chatId: ChatId): MenuButton
suspend fun TelegramBot.getChatMenuButton(chat: PrivateChat): MenuButton
Link copied to clipboard
suspend fun TelegramBot.getDefaultChatMenuButton(): MenuButton