| Package | Description |
|---|---|
| org.telegram.abilitybots.api.bot | |
| org.telegram.abilitybots.api.objects |
| Modifier and Type | Method and Description |
|---|---|
Ability |
BaseAbilityBot.backupDB()
This backup ability returns the object defined by
DBContext.backup() as a message document. |
Ability |
BaseAbilityBot.banUser()
Banned users are accumulated in the blacklist.
|
Ability |
BaseAbilityBot.claimCreator()
Regular users and admins who try to claim the bot will get banned.
|
Ability |
BaseAbilityBot.commands()
Default format:
|
Ability |
BaseAbilityBot.demoteAdmin() |
Ability |
BaseAbilityBot.promoteAdmin() |
Ability |
BaseAbilityBot.recoverDB()
Recovers the bot database using
DBContext.recover(Object). |
Ability |
BaseAbilityBot.reportCommands()
Format of the report:
|
Ability |
BaseAbilityBot.unbanUser()
Usage:
/unban @username |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Ability> |
BaseAbilityBot.abilities() |
| Modifier and Type | Method and Description |
|---|---|
Ability |
Ability.AbilityBuilder.build() |
Copyright © 2019. All rights reserved.