Example #1
0
 public Task VisitButtons(ButtonsReply reply, long chatId)
 {
     return(_client.SendRequestAsync <object>("sendMessage", new MessageToSend
     {
         ChatId = chatId,
         DisableNotification = false,
         DisableWebPagePreview = false,
         ReplyToMessageId = 0,
         ReplyMarkup = reply.Markup
     }));
 }
Example #2
0
 public async Task VisitButtons(ButtonsReply reply, long chatId)
 {
     await _client.SendRequestAsync <object>("sendMessage", new MessageToSend
     {
         ChatId = chatId.ToString(),
         Text   = reply.Title,
         DisableWebPagePreview = false,
         DisableNotification   = false,
         ReplayToMessageId     = 0,
         ReplyMarkup           = reply.Markup
     });
 }