L
L
lolka022019-12-06 16:28:07
API
lolka02, 2019-12-06 16:28:07

How to post a large text with a picture using api in telegram?

If the text has more than 1024 characters, then the sendMessage method should be used. How to correctly display below, like here 5dea56e5e8cb5704310963.png
in this example, I just add it to the text, it outputs in this form, but if there is a link in the text, it displays a preview of this link and not this picture

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SHADRIN, 2020-12-30
@shadrin_ss

Everything is described there about posting messages from the code, tear out a piece and everything will be ok.
Guid

A
Artem Melnykov, 2020-01-05
@NickProgramm

bot.sendPhoto(chat id, picture, {caption: "Signature"});
m?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question