Package dev. inmo. tgbotapi. extensions. api. chat. members
Functions
getChatMember
Link copied to clipboard
suspend fun TelegramBot.getChatMember(chatId: ChatId, user: User): ChatMember
Content copied to clipboard
suspend fun TelegramBot.getChatMember(chatId: ChatIdentifier, userId: UserId): ChatMember
Content copied to clipboard
suspend fun TelegramBot.getChatMember(chat: PublicChat, userId: UserId): ChatMember
Content copied to clipboard
suspend fun TelegramBot.getChatMember(chat: PublicChat, user: User): ChatMember
Content copied to clipboard
kickChatMember
Link copied to clipboard
suspend fun TelegramBot.kickChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.kickChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.kickChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.kickChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
Content copied to clipboard
promoteChatMember
Link copied to clipboard
suspend fun TelegramBot.promoteChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, isAnonymous: Boolean? = 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, canManageVoiceChats: Boolean? = null, canManageChat: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.promoteChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, isAnonymous: Boolean? = 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, canManageVoiceChats: Boolean? = null, canManageChat: Boolean?): Boolean
Content copied to clipboard
suspend fun TelegramBot.promoteChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, isAnonymous: Boolean? = 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, canManageVoiceChats: Boolean? = null, canManageChat: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.promoteChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, isAnonymous: Boolean? = 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, canManageVoiceChats: Boolean? = null, canManageChat: Boolean? = null): Boolean
Content copied to clipboard
restrictChatMember
Link copied to clipboard
suspend fun TelegramBot.restrictChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
Content copied to clipboard
suspend fun TelegramBot.restrictChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
Content copied to clipboard
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
Content copied to clipboard
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
Content copied to clipboard
setChatAdministratorCustomTitle
Link copied to clipboard
suspend fun TelegramBot.setChatAdministratorCustomTitle(chatId: ChatId, userId: UserId, customTitle: String): Boolean
Content copied to clipboard
suspend fun TelegramBot.setChatAdministratorCustomTitle(chatId: ChatId, user: User, customTitle: String): Boolean
Content copied to clipboard
suspend fun TelegramBot.setChatAdministratorCustomTitle(chat: PublicChat, userId: UserId, customTitle: String): Boolean
Content copied to clipboard
suspend fun TelegramBot.setChatAdministratorCustomTitle(chat: PublicChat, user: User, customTitle: String): Boolean
Content copied to clipboard
unbanChatMember
Link copied to clipboard
suspend fun TelegramBot.unbanChatMember(chatId: ChatId, user: User, onlyIfBanned: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.unbanChatMember(chatId: ChatIdentifier, userId: UserId, onlyIfBanned: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.unbanChatMember(chat: PublicChat, userId: UserId, onlyIfBanned: Boolean? = null): Boolean
Content copied to clipboard
suspend fun TelegramBot.unbanChatMember(chat: PublicChat, user: User, onlyIfBanned: Boolean? = null): Boolean
Content copied to clipboard