public Task <Message> SendLocationAsync(int chatId, float latitude, float longitude, int?replyToMessageId, ReplyMarkup replyMarkup) { var request = new MediaRestRequest(chatId, MakeRequest("sendLocation")) { ReplyToMessageId = replyToMessageId, ReplyMarkup = replyMarkup }; request.AddMedia("latitude", latitude.ToString("F6", CultureInfo.InvariantCulture)); request.AddMedia("longitude", longitude.ToString("F6", CultureInfo.InvariantCulture)); return(ExecutePostRequestAsync <Message>(request)); }
public Task <Message> SendStickerAsync(int chatId, string sticker, int?replyToMessageId, ReplyMarkup replyMarkup) { var request = new MediaRestRequest(chatId, MakeRequest("sendSticker")) { ReplyToMessageId = replyToMessageId, ReplyMarkup = replyMarkup }; request.AddMedia("sticker", sticker); return(ExecutePostRequestAsync <Message>(request)); }