예제 #1
0
 /// <summary>
 /// Send a Friend Request to a `contact` with message `hello`.
 ///
 /// The best practice is to send friend request once per minute.
 /// Remeber not to do this too frequently, or your account may be blocked.
 /// </summary>
 /// <param name="contact">Send friend request to contact</param>
 /// <param name="hello">The friend request content</param>
 /// <returns></returns>
 public Task Add([DisallowNull] Contact contact, [DisallowNull] string hello)
 {
     if (Logger.IsEnabled(LogLevel.Trace))
     {
         Logger.LogTrace($"static add({contact.Id}, {hello})");
     }
     return(Puppet.FriendshipAdd(contact.Id, hello));
 }