Image with caption and inline keyboard.
See original GitHub issueHi. How to send photo with caption and inline keyboard? (w/o caption works perfectly)
This code dont work:
telegram.sendPhoto('CLIENT_ID', 'http://lorempixel.com/400/200/cats/', {caption: 'cute kitty'}, Extra.markup((markup) => { return markup.inlineKeyboard([{ 'text': 'test button', 'callback_data': '1' } ]) }))
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
How can I send photo, caption and inline button in a single ...
So, this would solve your problem: let keyboard = [ "inline_keyboard" : [ [ ["text" : "Amazon" ...
Read more >Caption & Markdown Inline Keyboard - YouTube
Build Telegram Chat Bots with Node.js using the Modern Telegraf Framework ...
Read more >Picture Caption in Word & Group Label with Image ... - YouTube
Picture caption in Word? Let's learn how to implement it. In this tutorial I'll show you how to label an image in Word...
Read more >Images - Asciidoctor Docs
An inline image is displayed in the flow of another element, such as a paragraph or sidebar block. The inline image macro is...
Read more >Inline and Custom Keyboards (built-in) - grammY
Custom Keyboard button, a button in a keyboard, sends a text message with its label when pressed, sometimes just called keyboard button.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Kryjite it seems like Extra.markup adds the reply_markup parameter by itself, so it will work if you put the pure object in it:
telegram.sendPhoto('CLIENT_ID', 'http://lorempixel.com/400/200/cats/', {"reply_markup":{"inline_keyboard":[[{"text":"test button","callback_data":"test","hide":false}]]}, caption: 'cute kitty'})
@bostrot works too. Ty.