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
No, the user should mute the bot.
disable_notification
is only for channels.From Bot API:
The link refers to the channels
Now it’s possible to pass
disable_notification
tosendMessage
method — https://core.telegram.org/bots/api#sendmessagebot.sendMessage('chat_id', 'text', {disable_notification: true}