![](/img/trans.png)
[英]How to use nodejs and express.js to create an android chat app?
[英]how to create a chat menu button in telegrafjs
檢查這個例子
bot.command('your command', async (ctx) => {
return await ctx.reply('this is text', Markup
.keyboard([
['button 1', 'button 2'], // Row1 with 2 buttons
['button 3', 'button 4'], // Row2 with 2 buttons
['button 5', 'button 6', 'button 7'] // Row3 with 3 buttons
])
.oneTime()
.resize()
)
})
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.