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.

How to use Api.ReplyMarkup

See original GitHub issue

Hello thanks for making this, Im trying to send message to channel with markup. but Im getting this error : Error: Required object ReplyInlineMarkup of undefined is undefined

this is the message that I send : const result = await client.invoke(new Api.messages.SendMessage({ noWebpage: true, silent: true, background: true, clearDraft: true, peer: new Api.InputPeerChannel({ channelId:1680943xxxn, accessHash:6967653601753368xxxn }), replyToMsgId: 6872073, message: "hello", randomId: 1848690, replyMarkup: new Api.ReplyInlineMarkup({ "buttons": [{ "text": "� Open youtube �", "url": "https://youtube.com" }), scheduleDate: 789917, })); console.log(result);

Can you give some clear example to do this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
butthxcommented, Feb 11, 2022

try like this

new Api.ReplyInlineMarkup({
  rows : [
    new Api.KeyboardButtonRow({
       buttons : [
         new Api.KeyboardButtonUrl({
            text : "button text",
            url : "button url"
         })
       ]
    })
  ]
})
0reactions
Nafidinaracommented, Feb 11, 2022

ok thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reply Markup - A guide to Telegram.Bot library
Multi-row keyboard markup. A ReplyKeyboardMarkup with two rows of buttons: // using Telegram.Bot.Types.ReplyMarkups; ...
Read more >
Reply Keyboard Markup - YouTube
You will learn #Telegraf Framework and Telegram Bot API Basic Bot ... to create AWS Lambda Function with Layers Learn to use AWS...
Read more >
How to answer on replyMarkup using Telegram java TdApi?
My usage of this method: private static void replyMessage( long chatId, long messageId, byte[] data) { TdApi.
Read more >
editMessageReplyMarkup: Edit a reply markup in telegram.bot
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). Usage....
Read more >
yagop/node-telegram-bot-api - ReplyKeyboardMarkup - GitHub
Is this api supports ReplyKeyboardMarkup? ... Sure, take a look at: https://github.com/yagop/node-telegram-bot-api/blob/master/examples/polling.js#L33 ...
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