36
rated 0 times
[
38]
[
2]
/ answers: 1 / hits: 11855
/ 2 Years ago, sun, june 12, 2022, 12:00:00
More From » node.js
I create a menu button by add a new framework " Grammy "
first install grammy : npm install grammy
seconde add this code :
const { Bot } = require("grammy");
const bot = new Bot(BOT_TOKEN); // <-- place your bot token in this string
create list of commands :
bot.api.setMyCommands([
{ command: "start", description: "إبدأ من جديد" },
{ command: "help", description: "طلب مساعدة " },
{ command: "list", description: "القائمة " },
]);