Telegraf: How to removeKeyboard ?

Created on 29 Apr 2017  路  1Comment  路  Source: telegraf/telegraf

Hi,
how to use removeKeyboard ? i cant make it work
thanks

bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Markup.removeKeyboard(true))
})
question

Most helpful comment

Hey.

You have couple ways to do that:

bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Markup.removeKeyboard().extra())
})
bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Extra.markup(Markup.removeKeyboard()))
})
bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Extra.markup((m) => m.removeKeyboard()))
})

>All comments

Hey.

You have couple ways to do that:

bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Markup.removeKeyboard().extra())
})
bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Extra.markup(Markup.removeKeyboard()))
})
bot.command('help', (ctx) => {  
  return ctx.reply('This is available command: ', Extra.markup((m) => m.removeKeyboard()))
})
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stephirio picture Stephirio  路  3Comments

bostrot picture bostrot  路  3Comments

jwandekoken picture jwandekoken  路  3Comments

kuhel picture kuhel  路  3Comments

trgwii picture trgwii  路  3Comments