Ejemplo n.º 1
0
 /// <summary>
 /// 回复个人消息
 /// </summary>
 /// <param name="message"></param>
 /// <returns></returns>
 public Task <int> ReplyTemp(string message)
 {
     if (Sender != null && GroupInfo != null)
     {
         return(Mirai.SendTempMessageAsync(Sender.Id, GroupInfo.Id, message.ToMessage()));
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 发送临时消息
 /// </summary>
 /// <param name="message"></param>
 /// <param name="id"></param>
 /// <returns></returns>
 public Task <int> SendTemp(string message, long id)
 {
     return(Mirai.SendTempMessageAsync(id, GroupInfo.Id, message.ToMessage()));
 }