Fix wiki doc and javadoc
This commit is contained in:
parent
889fd46834
commit
7bee69c68d
@ -102,8 +102,9 @@ If you're in doubt that you're missing some code, the full code example can be i
|
||||
Go ahead and "/hello" to your bot. It should respond back with "Hello World!".
|
||||
|
||||
Since you've implemented an AbilityBot, you get **factory abilities** as well. Try:
|
||||
* /commands - Prints all commands supported by the bot
|
||||
* This will essentially print "hello - says hello world!". Yes! This is the information we supplied to the ability. The bot prints the commands in the format accepted by BotFather. So, whenever you change, add or remove commands, you can simply /commands and forward that message to BotFather.
|
||||
* /report - Prints all user-defined commands supported by the bot
|
||||
* This will essentially print "hello - says hello world!". Yes! This is the information we supplied to the ability. The bot prints the commands in the format accepted by BotFather. So, whenever you change, add or remove commands, you can simply /report and forward that message to BotFather.
|
||||
* /commands - Prints all commands exposed by the bot (factory and user-defined, with and without info)
|
||||
* /claim - Claims this bot
|
||||
* /backup - returns a backup of the bot database
|
||||
* /recover - recovers the database
|
||||
|
@ -72,10 +72,11 @@ import static org.telegram.abilitybots.api.util.AbilityUtils.*;
|
||||
* <li>Sets the user as the {@link Privacy#CREATOR} of the bot</li>
|
||||
* <li>Only the user with the ID returned by {@link AbilityBot#creatorId()} can genuinely claim the bot</li>
|
||||
* </ul>
|
||||
* <li>/commands - reports all user-defined commands (abilities)</li>
|
||||
* <li>/report - reports all user-defined commands (abilities)</li>
|
||||
* <ul>
|
||||
* <li>The same format acceptable by BotFather</li>
|
||||
* </ul>
|
||||
* <li>/commands - returns a list of all possible bot commands based on the privacy of the requesting user</li>
|
||||
* <li>/backup - returns a backup of the bot database</li>
|
||||
* <li>/recover - recovers the database</li>
|
||||
* <li>/promote <code>@username</code> - promotes user to bot admin</li>
|
||||
|
Loading…
Reference in New Issue
Block a user