示例#1
0
 public Task VisitText(TextReply reply, long chatId)
 {
     return(_client.SendRequestAsync <object>("sendMessage", new MessageToSend
     {
         ChatId = chatId,
         DisableNotification = false,
         DisableWebPagePreview = false,
         ReplyToMessageId = 0,
         ReplyMarkup = null
     }));
 }
示例#2
0
 public async Task VisitText(TextReply reply, long chatId)
 {
     await _client.SendRequestAsync <object>("sendMessage", new MessageToSend
     {
         ChatId = chatId.ToString(),
         Text   = reply.Text,
         DisableWebPagePreview = false,
         DisableNotification   = false,
         ReplayToMessageId     = 0,
         ReplyMarkup           = null
     });
 }