Пример #1
0
        public async Task SendMessage(VKMessage message)
        {
            HttpClient client = new HttpClient();

            client.BaseAddress = Uri;
            await client.GetAsync($"?user_id={message.User_Id}&random_id={message.Random_Id}&message={message.Body}&access_token={Token}&v=5.126");
        }
Пример #2
0
 public abstract void Execute(VKClient client, VKMessage message);
Пример #3
0
 public async override void Execute(VKClient client, VKMessage message)
 {
     message.Body = "pong";
     await client.SendMessage(message);
 }