Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question