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.

Choose who will see keyboard on replykeyboardmarkup with selective broken on Telegram clients

See original GitHub issue

Hey, great work! Really, I could assemble fine bot w/o any knowledge, very straightforward library.

I just found this is what I want to use from https://core.telegram.org/bots/api#replykeyboardmarkup

selective | Boolean | Optional. Use this parameter if you want to show the keyboard to 
specific users only. Targets: 
1) users that are @mentioned in the text of the Message object;
2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: 
A user requests to change the bot‘s language, bot replies to the request with a keyboard
to select the new language. Other users in the group don’t see the keyboard.

I should go and use this http://telegraf.js.org/#/?id=editmessagereplymarkup ?

Any help appreciated. Thanks 🙌

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
yangwaocommented, Mar 1, 2018

Thanks for adding. But I think there is problem in Telegram clients with this. I can test during next days. Thanks for add anyway!

2reactions
yangwaocommented, Feb 15, 2018

I put into markup.js

static selective (value = true) {
    return new Markup().selective(value)
}

It works, when is command triggered from Desktop OSX and keyboard does not show up on iOS/Android. That’s fine. Without selective it shows keyboard every user. But when is triggered from iOS/Android, it looks like it will show on desktop either (not same user), but not on iOS/Android.

Looks like similar issue https://github.com/telegramdesktop/tdesktop/issues/3897#issuecomment-329915090

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-telegram-keyboard-wrapper-fix - npm package - Snyk
A support to create keyboards in Telegram via bots For more information about how to use this package see README.
Read more >
Telegram bot keyboard - laravel - Stack Overflow
But in first case no keyboard in telegram client. In the second case it is present. What can I do wrong. laravel ·...
Read more >
Telegram Bot Features
Whenever your bot sends a message, it can display a special keyboard with predefined reply options (see ReplyKeyboardMarkup). Telegram apps that receive the ......
Read more >
Keyboards - Telegram Bot API - PHP SDK
Whenever your bot sends a message, it can pass along a special keyboard ... See ReplyKeyboardMarkup docs for a list of supported parameters...
Read more >
telegram - Go Packages
func (Bot) SendAudio ¶ ... SendAudio send audio files, if you want Telegram clients to display them in the music player. Your audio...
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