T
T
Tenebrius2021-09-14 22:04:10
Node.js
Tenebrius, 2021-09-14 22:04:10

Why aren't previews shown in Telegram when sending using the "copyMessage" method?

I'm using the copyMessage method from npm Telegraf.
The message is forwarded, but if it contains a link, then there is no preview. Are there options to somehow indicate that a preview is needed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tenebrius, 2021-09-20
@Tenebrius

So, if anyone is interested, in addition to the actual text, the message object contains an enumeration of additional entities, such as hashtags and links. Depending on the message type, the property is called either "entities" or "caption_entities". It also needs to be passed on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question