skip to Main Content

I use telegram bot api to send messages to a channel. I need to disable push notifications for Android and IOS, but when I pass disable_notification = true, I don’t get notifications for my desktop client, but my Android and IOS devices get push notifications (without sound).

Is it possible to disable push notifications for Android and IOS for telegram bot api and method send message?

P.S: I use PHP for sending messages to telegram.

2

Answers


  1. No, the user should mute the bot.
    disable_notification is only for channels.

    From Bot API:

    Sends the message silently. Users will receive a notification
    with no sound.

    The link refers to the channels

    Login or Signup to reply.
  2. Now it’s possible to pass disable_notification to sendMessage method — https://core.telegram.org/bots/api#sendmessage

    bot.sendMessage('chat_id', 'text', {disable_notification: true}

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