skip to Main Content

How to disable forwarding message of Telegram Bot in private chat?

Some individuals are receiving messages from the bot and subsequently distributing them to others.

I want to prevent this activity
I am using javascript with TelegramBot library.

Can anyone help me?

2

Answers


  1. You must set protect_content to true. Then the ability of users to save, copy and share messages with others will be disabled.

    https://core.telegram.org/bots/api#sendmessage

    enter image description here

    Login or Signup to reply.
  2. Setting protect_content to true can prevent messages from being forwarded and saved. However, if the owner creates a discuss group which link to this channel, the message will also be able to forward to the discuss group, the then messages can be forwarded from discuss group. How to prevent this happens? Thanks

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search