acceptSelfCommands property

  1. @override
bool acceptSelfCommands
final

Whether to accept messages sent by the bot itself as possible commands.

acceptBotCommands must also be set to true for this setting to allow the current bot to execute its own commands. If this is set to false, messages sent by the bot itself are not checked for commands. If it is true, messages sent by the bot itself will be checked for commands like other messages sent by actual users.

Care should be taken when setting this to true as it can potentially result in infinite command loops.

Implementation

@override
final bool acceptSelfCommands;