getChat

suspend fun TelegramBot.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun TelegramBot.getChat(chat: Chat): ExtendedChat
suspend fun TelegramBot.getChat(chat: PublicChat): ExtendedPublicChat

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

Throws

suspend fun TelegramBot.getChat(chat: ChannelChat): ExtendedChannelChat

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

Throws

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

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

Throws

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

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

Throws

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

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

Throws

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

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

Throws

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"

Throws