1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-03 06:40:49 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api.chat.get/get-chat.md
2021-03-17 15:18:37 +00:00

13 KiB

//docs/dev.inmo.tgbotapi.extensions.api.chat.get/getChat

getChat

[common]
Content
suspend fun TelegramBot.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun TelegramBot.getChat(chat: Chat): ExtendedChat

[common]
Content
suspend fun TelegramBot.getChat(chat: PublicChat): ExtendedPublicChat
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: ChannelChat): ExtendedChannelChat
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: ChannelChatImpl): ExtendedChannelChatImpl
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: GroupChat): ExtendedGroupChat
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: GroupChatImpl): ExtendedGroupChatImpl
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: SupergroupChat): ExtendedSupergroupChat
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: SupergroupChatImpl): ExtendedSupergroupChatImpl
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: PrivateChat): ExtendedPrivateChat
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: PrivateChatImpl): ExtendedPrivateChatImpl
More info

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

Throws

kotlin.ClassCastException

[common]
Content
suspend fun TelegramBot.getChat(chat: CommonUser): ExtendedPrivateChatImpl
More info

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

Throws

kotlin.ClassCastException