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.

Image with caption and inline keyboard.

See original GitHub issue

Hi. 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
bostrotcommented, Jul 14, 2017

@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'})

0reactions
ghostcommented, Jul 14, 2017

@bostrot works too. Ty.

Read more comments on GitHub >

github_iconTop 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 >

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