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: ChannelChat): ExtendedChannelChat

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedChannelChat with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: ChannelChatImpl): ExtendedChannelChatImpl

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedChannelChatImpl with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: CommonUser): ExtendedPrivateChatImpl

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedUser with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: GroupChat): ExtendedGroupChat

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedGroupChat with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: GroupChatImpl): ExtendedGroupChatImpl

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedGroupChatImpl with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: PrivateChat): ExtendedPrivateChat

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedPrivateChat with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: PrivateChatImpl): ExtendedPrivateChatImpl

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedPrivateChatImpl with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: PublicChat): ExtendedPublicChat

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedPublicChat with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: SupergroupChat): ExtendedSupergroupChat

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedSupergroupChat with unsafe operator "as"

suspend fun TelegramBot.getChat(chat: SupergroupChatImpl): ExtendedSupergroupChatImpl

Will cast incoming dev.inmo.tgbotapi.types.chat.ExtendedChat to a ExtendedSupergroupChatImpl with unsafe operator "as"

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