Developers » API methods » Account » account.setSilenceMode
Mutes push notifications for the set period of time.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
device_idUnique device ID.
string, accessible for versions from 5.31
timeTime in seconds for what notifications should be disabled. -1 to disable forever.
int (number)
peer_idDestination ID.
For user:
User ID, e.g. 12345.

For chat:
2000000000 + Chat ID, e.g. 2000000001.

For community:
- Community ID, e.g. -12345.

int (number), accessible for versions from 5.46
sound1 Ś to enable sound in this dialog, 0 Ś to disable sound. Only if peer_id contains user or community ID.
int (number)
Show options for only old API versions
string, outdated option, only for versions before 5.31
int (number), outdated option, only for versions before 5.46
int (number), outdated option, only for versions before 5.46
In case of success returns 1.
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
messages.send and messages.sendSticker methods use random_id parameter instead guid. account.getPushSettings return peer_id field instead chat_id and user_id. account.setSilenceMode method use peer_id parameter instead chat_id and user_id. messages.getHistoryAttachments method return market items, posts and comments like link attachments.