static void Main(string[] args) { int appId = 1234567; // id string email = "example@example.ru"; // email string password = "qwerty123"; // Settings settings = Settings.All; // var api = new VkApi(); api.Authorize(appId, email, password, settings); // var group = api.Utils.ResolveScreenName("habr"); // id habr // id , . - = 1000 int totalCount; // - var userIds = api.Groups.GetMembers(group.Id.Value, out totalCount); foreach (long id in userIds) { api.Messages.Send(id, false, ", !"); // } }}
Source: https://habr.com/ru/post/216553/
All Articles