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"); }
public abstract void Execute(VKClient client, VKMessage message);
public async override void Execute(VKClient client, VKMessage message) { message.Body = "pong"; await client.SendMessage(message); }