1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-06 00:00:50 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api.chat.get/get-chat.md

193 lines
13 KiB
Markdown
Raw Normal View History

//[docs](../../index.md)/[dev.inmo.tgbotapi.extensions.api.chat.get](index.md)/[getChat](get-chat.md)
# getChat
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chatId: [ChatIdentifier](../dev.inmo.tgbotapi.types/-chat-identifier/index.md)): [ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md)
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [Chat](../dev.inmo.tgbotapi.types.chat.abstracts/-chat/index.md)): [ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md)
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [PublicChat](../dev.inmo.tgbotapi.types.chat.abstracts/-public-chat/index.md)): [ExtendedPublicChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-public-chat/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedPublicChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-public-chat/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.PublicChat/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.PublicChat/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [ChannelChat](../dev.inmo.tgbotapi.types.chat.abstracts/-channel-chat/index.md)): [ExtendedChannelChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-channel-chat/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedChannelChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-channel-chat/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.ChannelChat/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.ChannelChat/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [ChannelChatImpl](../dev.inmo.tgbotapi.types.chat/-channel-chat-impl/index.md)): [ExtendedChannelChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-channel-chat-impl/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedChannelChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-channel-chat-impl/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.ChannelChatImpl/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.ChannelChatImpl/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [GroupChat](../dev.inmo.tgbotapi.types.chat.abstracts/-group-chat/index.md)): [ExtendedGroupChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-group-chat/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedGroupChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-group-chat/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.GroupChat/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.GroupChat/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [GroupChatImpl](../dev.inmo.tgbotapi.types.chat/-group-chat-impl/index.md)): [ExtendedGroupChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-group-chat-impl/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedGroupChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-group-chat-impl/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.GroupChatImpl/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.GroupChatImpl/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [SupergroupChat](../dev.inmo.tgbotapi.types.chat.abstracts/-supergroup-chat/index.md)): [ExtendedSupergroupChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-supergroup-chat/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedSupergroupChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-supergroup-chat/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [SupergroupChatImpl](../dev.inmo.tgbotapi.types.chat/-supergroup-chat-impl/index.md)): [ExtendedSupergroupChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-supergroup-chat-impl/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedSupergroupChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-supergroup-chat-impl/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.SupergroupChatImpl/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.SupergroupChatImpl/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [PrivateChat](../dev.inmo.tgbotapi.types.chat.abstracts/-private-chat/index.md)): [ExtendedPrivateChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-private-chat/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedPrivateChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-private-chat/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [PrivateChatImpl](../dev.inmo.tgbotapi.types.chat/-private-chat-impl/index.md)): [ExtendedPrivateChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-private-chat-impl/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedPrivateChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-private-chat-impl/index.md) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.PrivateChatImpl/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.chat.PrivateChatImpl/PointingToDeclaration/"></a>|
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getChat](get-chat.md)(chat: [CommonUser](../dev.inmo.tgbotapi.types/-common-user/index.md)): [ExtendedPrivateChatImpl](../dev.inmo.tgbotapi.types.chat.extended/-extended-private-chat-impl/index.md)
More info
Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat](../dev.inmo.tgbotapi.types.chat.abstracts.extended/-extended-chat/index.md) to a [ExtendedUser](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FExtendedUser%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081) with unsafe operator "as"
#### Throws
| | |
|---|---|
| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.CommonUser/PointingToDeclaration/"></a>[kotlin.ClassCastException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-class-cast-exception/index.html)| <a name="dev.inmo.tgbotapi.extensions.api.chat.get//getChat/dev.inmo.tgbotapi.bot.RequestsExecutor#dev.inmo.tgbotapi.types.CommonUser/PointingToDeclaration/"></a>|