Uses of Class
org.telegram.abilitybots.api.objects.Ability
Packages that use Ability
Package
Description
-
Uses of Ability in org.telegram.abilitybots.api.bot
Methods in org.telegram.abilitybots.api.bot that return AbilityModifier and TypeMethodDescriptionDefaultAbilities.backupDB()
This backup ability returns the object defined byDBContext.backup()
as a message document.DefaultAbilities.banUser()
Banned users are accumulated in the blacklist.DefaultAbilities.claimCreator()
Regular users and admins who try to claim the bot will get banned.DefaultAbilities.commands()
Default format:DefaultAbilities.demoteAdmin()
DefaultAbilities.promoteAdmin()
DefaultAbilities.recoverDB()
Recovers the bot database usingDBContext.recover(Object)
.DefaultAbilities.reportCommands()
Format of the report:DefaultAbilities.reportStats()
DefaultAbilities.unbanUser()
Usage:/unban @username
Methods in org.telegram.abilitybots.api.bot that return types with arguments of type Ability -
Uses of Ability in org.telegram.abilitybots.api.objects
Methods in org.telegram.abilitybots.api.objects that return AbilityMethods in org.telegram.abilitybots.api.objects with parameters of type AbilityModifier and TypeMethodDescription -
Uses of Ability in org.telegram.abilitybots.api.toggle
Methods in org.telegram.abilitybots.api.toggle that return AbilityModifier and TypeMethodDescriptionAbilityToggle.processAbility
(Ability ab) Abilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.abilitybots.api.objects.Ability)
condition) will be processed by this method.BareboneToggle.processAbility
(Ability ab) CustomToggle.processAbility
(Ability ability) DefaultToggle.processAbility
(Ability ab) Methods in org.telegram.abilitybots.api.toggle with parameters of type AbilityModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
AbilityToggle.processAbility
(Ability ab) Abilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.abilitybots.api.objects.Ability)
condition) will be processed by this method.BareboneToggle.processAbility
(Ability ab) CustomToggle.processAbility
(Ability ability) DefaultToggle.processAbility
(Ability ab)