Skip to content

Commit 77a0ebf

Browse files
committed
fix: SendLocation now sends correct location always
1 parent 2929d40 commit 77a0ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NetTelegramBotApi/Requests/SendLocation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public override HttpContent CreateHttpContent()
7777
{
7878
dic.Add("chat_id", ChannelName);
7979
}
80-
dic.Add("latitude", Latitude.ToString());
81-
dic.Add("longitude", Longitude.ToString());
80+
dic.Add("latitude", Latitude.ToString(System.Globalization.CultureInfo.InvariantCulture));
81+
dic.Add("longitude", Longitude.ToString(System.Globalization.CultureInfo.InvariantCulture));
8282

8383
if (DisableNotification.HasValue)
8484
{

0 commit comments

Comments
 (0)