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 })); }
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 }); }