Skip to content

Commit

Permalink
Build a menu section.
Browse files Browse the repository at this point in the history
  • Loading branch information
youneslaa7878 committed Nov 5, 2022
1 parent b707dc0 commit 10f4616
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ bot.command("about", (ctx) =>
)
);

// Suggest commands in the menu
bot.api.setMyCommands([
{ command: "start", description: "Start the bot" },
{ command: "yo", description: "Be greeted by the bot" },
{ command: "about", description: "Learn more about the bot" },
{
command: "effect",
description: "Apply text effects on the text. (usage: /effect [text])",
},
]);

// Handle all other messages
bot.on("message", (ctx) => ctx.reply("Got another message!"));

Expand Down

0 comments on commit 10f4616

Please sign in to comment.