예제 #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
파일: Ping.cs 프로젝트: VillyFiki/FikiBot
 public async override void Execute(VKClient client, VKMessage message)
 {
     message.Body = "pong";
     await client.SendMessage(message);
 }