Skip to content
Abdi Urgessa edited this page Feb 18, 2024 · 3 revisions

refer scope for more

bot.use((ctx) => {
  let cmd = [
    {
      command: "start",
      description: "Starting The bot",
    },
    {
      command: "inlinekeyboard",
      description: "Sending inline keyboards",
    },
  ];
  let scope = {
    type: "default",
  };
  ctx.setMyCommands({ commands: cmd, scope: scope });
});
Clone this wiki locally