Skip to content

getNotificationSettings

Sahri Riza Umami edited this page Mar 15, 2017 · 5 revisions

Returns notification settings for given scope.

getNotificationSettings(scope, chat_id)

scope = Chat(chat_id) | PrivateChats | GroupChats | AllChats

Option Description
scope Scope to return information about notification settings. The scope is Chat(chat_id), PrivateChats, GroupChats, and AllChats.

Example

  • Notification settings applied to particular chat 1234567890.

    getNotificationSettings('Chat', 1234567890)
  • Notification settings applied to all private chats.

    getNotificationSettings('PrivateChats')
  • Notification settings applied to all group chats.

    getNotificationSettings('GroupChats')
  • Notification settings applied to all chats.

    getNotificationSettings('AllChats')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally