-1

I am Developing a telegram bot. Bot is able to receive messages sent by users in a group. Users send URLs in my group and bot script can detect through entity object whether it is a URL or not.

My objective is to detect, when a user send a URL with preview ON.

Is there any possible way to detect it at my bot script?

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Akash Dwivedi
  • 19
  • 1
  • 8

1 Answers1

1

Unfortunately, bots can't get this type of data :(

Here have a solution you might interested, if your bot have admin, you can just restrict every users with all permission but can_add_web_page_previews.

Sean Wei
  • 7,433
  • 1
  • 19
  • 39