public Task VisitText(TextReply reply, long chatId) { return(_client.SendRequestAsync <object>("sendMessage", new MessageToSend { ChatId = chatId, DisableNotification = false, DisableWebPagePreview = false, ReplyToMessageId = 0, ReplyMarkup = null })); }
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 }); }