Package-level declarations
Functions
Link copied to clipboard
suspend fun TelegramBot.banChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
suspend fun TelegramBot.banChatMember(chatId: IdChatIdentifier, user: User, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
suspend fun TelegramBot.banChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
suspend fun TelegramBot.banChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, revokeMessages: Boolean? = null): Boolean
Link copied to clipboard
suspend fun TelegramBot.banChatSenderChat(chatId: ChatIdentifier, senderChatId: IdChatIdentifier): Boolean
suspend fun TelegramBot.banChatSenderChat(chatId: IdChatIdentifier, senderChat: PublicChat): Boolean
suspend fun TelegramBot.banChatSenderChat(chat: PublicChat, senderChatId: IdChatIdentifier): Boolean
Link copied to clipboard
Link 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, canManageVideoChats: Boolean? = null, canManageChat: Boolean? = null, canManageTopics: Boolean? = null): Boolean
suspend fun TelegramBot.promoteChatMember(chatId: IdChatIdentifier, 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, canManageVideoChats: Boolean? = null, canManageChat: Boolean? = null, canManageTopics: Boolean? = null): Boolean
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, canManageVideoChats: Boolean? = null, canManageChat: Boolean? = null, canManageTopics: Boolean? = null): Boolean
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, canManageVideoChats: Boolean? = null, canManageChat: Boolean? = null, canManageTopics: Boolean? = null): Boolean
Link copied to clipboard
suspend fun TelegramBot.restrictChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions(), useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }): Boolean
suspend fun TelegramBot.restrictChatMember(chatId: IdChatIdentifier, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions(), useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }): Boolean
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions(), useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }): Boolean
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions(), useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }): Boolean
Link copied to clipboard
suspend fun TelegramBot.setChatAdministratorCustomTitle(chatId: IdChatIdentifier, userId: UserId, customTitle: String): Boolean
suspend fun TelegramBot.setChatAdministratorCustomTitle(chatId: IdChatIdentifier, user: User, customTitle: String): Boolean
suspend fun TelegramBot.setChatAdministratorCustomTitle(chat: PublicChat, userId: UserId, customTitle: String): Boolean
suspend fun TelegramBot.setChatAdministratorCustomTitle(chat: PublicChat, user: User, customTitle: String): Boolean
Link copied to clipboard
suspend fun TelegramBot.unbanChatMember(chatId: ChatIdentifier, userId: UserId, onlyIfBanned: Boolean? = null): Boolean
suspend fun TelegramBot.unbanChatMember(chatId: IdChatIdentifier, user: User, onlyIfBanned: Boolean? = null): Boolean
suspend fun TelegramBot.unbanChatMember(chat: PublicChat, userId: UserId, onlyIfBanned: Boolean? = null): Boolean
suspend fun TelegramBot.unbanChatMember(chat: PublicChat, user: User, onlyIfBanned: Boolean? = null): Boolean
Link copied to clipboard
suspend fun TelegramBot.unbanChatSenderChat(chatId: ChatIdentifier, senderChatId: IdChatIdentifier): Boolean
suspend fun TelegramBot.unbanChatSenderChat(chatId: IdChatIdentifier, senderChat: PublicChat): Boolean
suspend fun TelegramBot.unbanChatSenderChat(chat: PublicChat, senderChatId: IdChatIdentifier): Boolean