question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

post inline keyboards and remove old keyboards ( not inline ) in same time

See original GitHub issue

hi. thanks for this amazing package. I have a question . how can I send inline keyboards and in same time remove keyboards ( not inline ) I tried the fallowing, but they do not work :

ctx.reply(message, Extra.markup(m => {
    return m.removeKeyboard();
}).markup(m => {
    return m.inlineKeyboard([
        m.callbackButton(messages.buttons.contact, "contact")
    ]);
})
ctx.reply(message, Extra.markup(m => {
    m.removeKeyboard();
    return m.inlineKeyboard([
        m.callbackButton(messages.buttons.contact, "contact")
    ])
})
ctx.reply(message, Extra.markup(m => {
    return m..removeKeyboard().inlineKeyboard([
        m.callbackButton(messages.buttons.contact, "contact")
    ])
})

and some other … can you help me ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

5reactions
Shoyadbekcommented, Jan 28, 2019

You can send two message first for remove keyboard:

ctx.reply(message, reply_markup: { remove_keyboard: true})

And send new message with new buttons.

For quaque use async/await function

0reactions
M1Ergashcommented, Jun 1, 2021

Same didnt help(

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I remove inline keyboard after click? - Stack Overflow
After a user clicks on like or dislike button, I want this inline keyboard to disappear.
Read more >
ReplyKeyboardRemove: Remove a keyboard in telegram.bot
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By ...
Read more >
Inline and Custom Keyboards (built-in) - grammY
It is not possible to specify both a custom keyboard and an inline keyboard in the same message. The two are mutually exclusive....
Read more >
Remove unwanted keyboard or language from Windows 11
If the unwanted keyboard or input method is still there, you can remove the individual keyboard from Settings. Here's how: Select Start >...
Read more >
The 3 Best Ergonomic Keyboard for 2022 - The New York Times
If you spend all day at a computer, an ergonomic keyboard's more natural tilt and customizable positioning may be more comfortable than a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found