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

Functions

getChatMember
Link copied to clipboard
common
suspend fun RequestsExecutor.getChatMember(chatId: ChatId, user: User): ChatMember
suspend fun RequestsExecutor.getChatMember(chatId: ChatIdentifier, userId: ChatId): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, userId: ChatId): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, user: User): ChatMember
kickChatMember
Link copied to clipboard
common
suspend fun RequestsExecutor.kickChatMember(chatId: ChatId, user: User, untilDate: TelegramDate?): Boolean
suspend fun RequestsExecutor.kickChatMember(chatId: ChatIdentifier, userId: ChatId, untilDate: TelegramDate?): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, userId: ChatId, untilDate: TelegramDate?): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, user: User, untilDate: TelegramDate?): Boolean
promoteChatMember
Link copied to clipboard
common
suspend fun RequestsExecutor.promoteChatMember(chatId: ChatId, user: User, untilDate: TelegramDate?, isAnonymous: Boolean?, canChangeInfo: Boolean?, canPostMessages: Boolean?, canEditMessages: Boolean?, canDeleteMessages: Boolean?, canInviteUsers: Boolean?, canRestrictMembers: Boolean?, canPinMessages: Boolean?, canPromoteMembers: Boolean?): Boolean
suspend fun RequestsExecutor.promoteChatMember(chatId: ChatIdentifier, userId: ChatId, untilDate: TelegramDate?, isAnonymous: Boolean?, canChangeInfo: Boolean?, canPostMessages: Boolean?, canEditMessages: Boolean?, canDeleteMessages: Boolean?, canInviteUsers: Boolean?, canRestrictMembers: Boolean?, canPinMessages: Boolean?, canPromoteMembers: Boolean?): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, userId: ChatId, untilDate: TelegramDate?, isAnonymous: Boolean?, canChangeInfo: Boolean?, canPostMessages: Boolean?, canEditMessages: Boolean?, canDeleteMessages: Boolean?, canInviteUsers: Boolean?, canRestrictMembers: Boolean?, canPinMessages: Boolean?, canPromoteMembers: Boolean?): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, user: User, untilDate: TelegramDate?, isAnonymous: Boolean?, canChangeInfo: Boolean?, canPostMessages: Boolean?, canEditMessages: Boolean?, canDeleteMessages: Boolean?, canInviteUsers: Boolean?, canRestrictMembers: Boolean?, canPinMessages: Boolean?, canPromoteMembers: Boolean?): Boolean
restrictChatMember
Link copied to clipboard
common
suspend fun RequestsExecutor.restrictChatMember(chatId: ChatId, user: User, untilDate: TelegramDate?, permissions: ChatPermissions): Boolean
suspend fun RequestsExecutor.restrictChatMember(chatId: ChatIdentifier, userId: ChatId, untilDate: TelegramDate?, permissions: ChatPermissions): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, userId: ChatId, untilDate: TelegramDate?, permissions: ChatPermissions): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate?, permissions: ChatPermissions): Boolean
setChatAdministratorCustomTitle
Link copied to clipboard
common
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, userId: ChatId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, user: User, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, userId: ChatId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, user: User, customTitle: String): Boolean
unbanChatMember
Link copied to clipboard
common
suspend fun RequestsExecutor.unbanChatMember(chatId: ChatId, user: User, onlyIfBanned: Boolean?): Boolean
suspend fun RequestsExecutor.unbanChatMember(chatId: ChatIdentifier, userId: ChatId, onlyIfBanned: Boolean?): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, userId: ChatId, onlyIfBanned: Boolean?): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, user: User, onlyIfBanned: Boolean?): Boolean