How does one make a keyboard Telegram. Bot of 2 buttons in C#?

Question of a newbie. The second night do not sleep.) Tell me, please, interested in 2 aspects.

1) How to make keyboard appear and execute commands (a button "Show location" - SendLocation method is executing, the button "Goodbye" - respectively, the message with farewell). Break core.telegram.org still can't doperet

2) Why is rounded latitude and longitude? Enter, for example, "57.65658 f, 99.54876 f", and the bot sends in the telegram 57.000, 99.000

namespace Telegram
{

 namespace SimpleJSON
{
....

}


 namespace Request
{
....

}

 class Method
{
 string _token;
 string LINK = "https://api.telegram.org/bot";
 public Method(string Token)
{
 _token = Token;
}
 public string Getme()
{
 using (WebClient webClient = new WebClient())
{
 string response = webClient.DownloadString(LINK + _token + "/getMe");
 return response;
}
}
 public void SendMessage(string message, int ChatID)
{
 using (WebClient webClient = new WebClient())
{
 NameValueCollection pars = new NameValueCollection();
 pars.Add("chat_id", ChatID.ToString());
 pars.Add("text", message);
 webClient.UploadValues(LINK + _token + "/sendMessage", pars);
}
}
 public void SendLocation(int chat_id, float latitude, float longitude)
{
 using (WebClient webClient = new WebClient())
{
 NameValueCollection pars = new NameValueCollection();
 pars.Add("chat_id", chat_id.ToString());
 pars.Add("latitude", latitude.ToString());
 pars.Add("longitude", longitude.ToString());

 webClient.UploadValues(LINK + _token + "/sendLocation", pars); 
}
}

 /*core.telegram.org/bots/api#ReplyKeyboardMarkup binding an array of arrays with the name of the buttons,
 one_time_keyboard optional, to hide the keyboard*/

 public void ReplyKeyboardMarkup(bool one_time_keyboard ) 
{
 using (WebClient webClient = new WebClient())

 { 
 string[][] Arr = new string[2][] {
 new string[] {"Show location"},
 new string[] {"Goodbye"} }; 
}
}
}
}
June 10th 19 at 16:05
1 answer
June 10th 19 at 16:07
Solution
Open nuget look for it a telegram
There are ready libs for it
Yes, I saw the library, was hooked. But how to create a working keyboard never figured it out. This is why you wrote here - Saul.Hayes commented on June 10th 19 at 16:10
https://github.com/BashkaMen/Telegram-Bot - here is my example bot.

In this library is ReplyKeyboardMarkup
this is a two-dimensional array, which you yourself put button. For example in the first row 2 second 3 - Andres93 commented on June 10th 19 at 16:13

Find more questions by tags TelegramC#