S
S
serder12019-10-22 16:46:59
Python
serder1, 2019-10-22 16:46:59

There is a telegram bot. The bot should provide a link to the site upon request. How can I prevent a pod from attaching a preview when sending a message with a link?

Bot in Python. telebot library.
The bot should issue a link from the sql database at the request of the user, but when the bot sends the link, it automatically attaches its preview (text + image)
How to make the bot not attach the site preview to the link, but just a bare link

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kafkiansky, 2019-10-22
@serder1

Pass an empty attachment: "attachments": [{}]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question