docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat.get

Package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat.get

Functions

(common)

getChat

suspend fun RequestsExecutor.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun RequestsExecutor.getChat(chat: Chat): ExtendedChat

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedPublicChat with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedChannelChat with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedChannelChatImpl with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedGroupChat with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedGroupChatImpl with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedSupergroupChat with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedSupergroupChatImpl with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedPrivateChat with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedPrivateChatImpl with unsafe operator "as"

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

Will cast incoming com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat to a ExtendedUser with unsafe operator "as"

suspend fun RequestsExecutor.getChat(chat: CommonUser): ExtendedUser
(common)

getChatAdministrators

suspend fun RequestsExecutor.getChatAdministrators(chatId: ChatIdentifier): List<AdministratorChatMember>
suspend fun RequestsExecutor.getChatAdministrators(chat: PublicChat): List<AdministratorChatMember>
(common)

getChatMembersCount

suspend fun RequestsExecutor.getChatMembersCount(chatId: ChatIdentifier): Int
suspend fun RequestsExecutor.getChatMembersCount(chat: PublicChat): Int