/// <summary> /// Returns list of chats with non-default notification settings /// </summary> public static Task <Chats> GetChatNotificationSettingsExceptionsAsync( this Client client, NotificationSettingsScope scope = default, bool compareSound = default) { return(client.ExecuteAsync(new GetChatNotificationSettingsExceptions { Scope = scope, CompareSound = compareSound })); }
/// <summary> /// Returns the notification settings for chats of a given type /// </summary> public static Task <ScopeNotificationSettings> GetScopeNotificationSettingsAsync( this Client client, NotificationSettingsScope scope = default) { return(client.ExecuteAsync(new GetScopeNotificationSettings { Scope = scope })); }
/// <summary> /// Changes notification settings for chats of a given type /// </summary> public static Task <Ok> SetScopeNotificationSettingsAsync( this Client client, NotificationSettingsScope scope = default, ScopeNotificationSettings notificationSettings = default) { return(client.ExecuteAsync(new SetScopeNotificationSettings { Scope = scope, NotificationSettings = notificationSettings })); }
public ItemsCollection(IProtoService protoService, NotificationSettingsScope scope) { _protoService = protoService; _scope = scope; }