My commands

You can set/delete/get my bot commands

Set my commands

To set my commands, use MyCommands class-method or .setMyCommands answer/api method

MyCommands class-method take arguments:

Argument
Description
Required
1

Commands you want to set (array of IBotCommand)

Required

2

Scope for which you want to set commands to

Optional

3

Language code

Optional

If you want to know what arguments an API method takes, see the IDE hint

Delete my commands

To delete my commands, use DeleteMyCommands class-method or .deleteMyCommands answer/api method

DeleteMyCommands class-method or .deleteMyCommands answer method take arguments:

Argument
Description
Required
1

Scope for which you want to delete commands to

Optional

2

Language code

Optional

If you want to know what arguments an API method takes, see the IDE hint

Get my commands

To get my commands, use .getMyCommands answer/api method

.getMyCommands answer method take arguments:

Argument
Description
Required
1

Scope you want to get commands

Optional

2

Language code

Optional

If you want to know what arguments an API method takes, see the IDE hint

Example

Last updated