Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 725 Bytes

File metadata and controls

20 lines (11 loc) · 725 Bytes

Create a New Command

There are a few steps to follow when creating a new command.

Create the Command and Add the Respective Handler

First, add your code to bot/handlers.py and register your new command in the HANDLERS constant at the end of the file.

Update the Help Command

You must also update the /help command to include the new command.

Add the Command to the Command List

You need to add the command in the Bot Manual Settings and set up the full, updated command list in your Telegram bot (by talking to BotFather).

(Optional) Add Instructions to Functional Test the New Command

Edit the Functional Testing to include the new command.