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

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

Functions

(common)

getChatMember

suspend fun RequestsExecutor.getChatMember(chatId: ChatIdentifier, userId: UserId): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, userId: UserId): ChatMember
suspend fun RequestsExecutor.getChatMember(chatId: ChatId, user: User): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, user: User): ChatMember
(common)

kickChatMember

suspend fun RequestsExecutor.kickChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null): Boolean
(common)

promoteChatMember

suspend fun RequestsExecutor.promoteChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
(common)

restrictChatMember

suspend fun RequestsExecutor.restrictChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
(common)

setChatAdministratorCustomTitle

suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, userId: UserId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, userId: UserId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, user: User, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, user: User, customTitle: String): Boolean
(common)

unbanChatMember

suspend fun RequestsExecutor.unbanChatMember(chatId: ChatIdentifier, userId: UserId): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, userId: UserId): Boolean
suspend fun RequestsExecutor.unbanChatMember(chatId: ChatId, user: User): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, user: User): Boolean