Package dev.inmo.tgbotapi.extensions.api.chat.get

Functions

getChat
Link copied to clipboard
common
suspend fun RequestsExecutor.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun RequestsExecutor.getChat(chat: Chat): ExtendedChat

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

common
suspend fun RequestsExecutor.getChat(chat: CommonUser): ExtendedPrivateChatImpl
common
suspend fun RequestsExecutor.getChat(chat: ChannelChatImpl): ExtendedChannelChatImpl
common
suspend fun RequestsExecutor.getChat(chat: GroupChatImpl): ExtendedGroupChatImpl
common
suspend fun RequestsExecutor.getChat(chat: PrivateChatImpl): ExtendedPrivateChatImpl
common
suspend fun RequestsExecutor.getChat(chat: SupergroupChatImpl): ExtendedSupergroupChatImpl
common
suspend fun RequestsExecutor.getChat(chat: ChannelChat): ExtendedChannelChat
common
suspend fun RequestsExecutor.getChat(chat: GroupChat): ExtendedGroupChat
common
suspend fun RequestsExecutor.getChat(chat: PrivateChat): ExtendedPrivateChat
common
suspend fun RequestsExecutor.getChat(chat: PublicChat): ExtendedPublicChat
common
suspend fun RequestsExecutor.getChat(chat: SupergroupChat): ExtendedSupergroupChat
getChatAdministrators
Link copied to clipboard
common
suspend fun RequestsExecutor.getChatAdministrators(chatId: ChatIdentifier): List<AdministratorChatMember>
suspend fun RequestsExecutor.getChatAdministrators(chat: PublicChat): List<AdministratorChatMember>
getChatMembersCount
Link copied to clipboard
common
suspend fun RequestsExecutor.getChatMembersCount(chatId: ChatIdentifier): Int
suspend fun RequestsExecutor.getChatMembersCount(chat: PublicChat): Int