Skip to content

Commit

Permalink
Add disable_mentions (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmem authored and inyutin-maxim committed Apr 27, 2019
1 parent a464299 commit 0c84643
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions VkNet/Model/RequestParams/Messages/MessagesSendParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ public class MessagesSendParams
[JsonProperty("captcha_key")]
[Obsolete(ObsoleteText.CaptchaNeeded)]
public string CaptchaKey { get; set; }

/// <summary>
/// 1 - отключить уведомление об упоминании в сообщении, может принимать значения 1 или 0, по умолчанию
/// </summary>
[JsonProperty("disable_mentions")]
public bool DisableMentions { get; set; }

/// <summary>
/// Привести к типу VkParameters.
Expand Down Expand Up @@ -159,8 +165,9 @@ public static VkParameters ToVkParameters(MessagesSendParams p)
{ "peer_id", p.PeerId },
{ "payload", p.Payload },
{ "group_id", p.GroupId },
{ "dont_parse_links", p.DontParseLinks }
{ "dont_parse_links", p.DontParseLinks },
{ "disable_mentions", p.DisableMentions }
};
}
}
}
}

0 comments on commit 0c84643

Please sign in to comment.