@@ -406,7 +406,7 @@ about its business.
406
406
407
407
Added support for syntax
408
408
409
- .. py :method :: send_location(latitude, longitude, [reply_to=None , attach=None , extra=None , notify=True ])
409
+ .. py :method :: send_location(latitude, longitude, [live_period= None , reply_to=None , attach=None , extra=None , notify=True ])
410
410
411
411
Send the geographic location to the user. If the location you're sending
412
412
is in reply to another message, set *reply_to * to the ID of the other
@@ -418,8 +418,12 @@ about its business.
418
418
The *notify * parameter is for defining if your message should trigger
419
419
a notification on the client side (yes by default).
420
420
421
+ The *live_period * parameter is for defining if this location must be a live location and needs to be updated over time.
422
+ Leave to `None ` if it is not or set it as a number between 60 and 86400 (seconds) if it is.
423
+
421
424
:param float latitude: The latitude of the location
422
425
:param float longitude: The longitude of the location
426
+ :param int live_period: The duration of the live location in seconds, None if it is not a live location.
423
427
:param int reply_to: The ID of the :py:class: `~botogram.Message ` this one is replying to
424
428
:param object attach: An extra thing to attach to the message.
425
429
:param object extra: An extra reply interface object to attach
@@ -435,6 +439,10 @@ about its business.
435
439
436
440
Now the method returns the sent message
437
441
442
+ .. versionchanged :: 0.7
443
+
444
+ Now the method supports live locations
445
+
438
446
.. py :method :: send_venue(latitude, longitude, title, address, [foursquare=None , reply_to=None , attach=None , extra=None , notify=True ])
439
447
440
448
Send a venue to the user. A venue is made of its geographic coordinates
@@ -1237,9 +1245,9 @@ about its business.
1237
1245
1238
1246
Support text formatting in caption through *syntax *.
1239
1247
1240
- .. py :method :: send_location(latitude, longitude, [reply_to=None , attach=None , extra=None , notify=True ])
1248
+ .. py :method :: send_location(latitude, longitude, [live_period= None , reply_to=None , attach=None , extra=None , notify=True ])
1241
1249
1242
- Send the geographic location to the chat . If the location you're sending
1250
+ Send the geographic location to the user . If the location you're sending
1243
1251
is in reply to another message, set *reply_to * to the ID of the other
1244
1252
:py:class: `~botogram.Message `.
1245
1253
@@ -1249,8 +1257,12 @@ about its business.
1249
1257
The *notify * parameter is for defining if your message should trigger
1250
1258
a notification on the client side (yes by default).
1251
1259
1260
+ The *live_period * parameter is for defining if this location must be a live location and needs to be updated over time.
1261
+ Leave to `None ` if it is not or set it as a number between 60 and 86400 (seconds) if it is.
1262
+
1252
1263
:param float latitude: The latitude of the location
1253
1264
:param float longitude: The longitude of the location
1265
+ :param int live_period: The duration of the live location in seconds, None if it is not a live location.
1254
1266
:param int reply_to: The ID of the :py:class: `~botogram.Message ` this one is replying to
1255
1267
:param object attach: An extra thing to attach to the message.
1256
1268
:param object extra: An extra reply interface object to attach
@@ -1266,6 +1278,10 @@ about its business.
1266
1278
1267
1279
Now the method returns the sent message
1268
1280
1281
+ .. versionchanged :: 0.7
1282
+
1283
+ Now the method supports live locations
1284
+
1269
1285
.. py :method :: send_venue(latitude, longitude, title, address, [foursquare=None , reply_to=None , attach=None , extra=None , notify=True ])
1270
1286
1271
1287
Send a venue to the chat. A venue is made of its geographic coordinates
@@ -1895,6 +1911,34 @@ about its business.
1895
1911
1896
1912
.. versionadded :: 0.4
1897
1913
1914
+ .. py :method :: edit_live_location(latitude, longitude, [extra=None , attach=None ])
1915
+
1916
+ This method allows you to edit the latitude and longitude of a live location you already sent.
1917
+
1918
+ :param float latitude: The new latitude
1919
+ :param float longitude: The new longitude
1920
+ :param object attach: An extra thing to attach to the message.
1921
+ :param object extra: An extra reply interface object to attach.
1922
+
1923
+ .. deprecated :: 0.4
1924
+
1925
+ The *extra * parameter is now deprecated
1926
+
1927
+ .. versionadded :: 0.7
1928
+
1929
+ .. py :method :: stop_live_location([extra=None , attach=None ])
1930
+
1931
+ This method allows you to stop a live location and prevent further latitude and longitude edits.
1932
+
1933
+ :param object attach: An extra thing to attach to the message.
1934
+ :param object extra: An extra reply interface object to attach.
1935
+
1936
+ .. deprecated :: 0.4
1937
+
1938
+ The *extra * parameter is now deprecated.
1939
+
1940
+ .. versionadded :: 0.7
1941
+
1898
1942
.. py :method :: forward_to(to[, notify=True ])
1899
1943
1900
1944
Forward this message *to * another chat or user by specifying their ID. One
@@ -2117,7 +2161,7 @@ about its business.
2117
2161
2118
2162
Now the method returns the sent message
2119
2163
2120
- .. py :method :: reply_with_location(latitude, longitude, [attach=None , extra=None , notify=True ])
2164
+ .. py :method :: reply_with_location(latitude, longitude, [live_period= None , attach=None , extra=None , notify=True ])
2121
2165
2122
2166
Send the geographic location to the user.
2123
2167
@@ -2127,8 +2171,13 @@ about its business.
2127
2171
The *notify * parameter is for defining if your message should trigger
2128
2172
a notification on the client side (yes by default).
2129
2173
2174
+ The *live_period * parameter is for defining if this location must be a live location and needs to be updated over time.
2175
+ Leave to `None ` if it is not or set it as a number between 60 and 86400 (seconds) if it is.
2176
+
2130
2177
:param float latitude: The latitude of the location
2131
2178
:param float longitude: The longitude of the location
2179
+ :param int live_period: The duration of the live location in seconds, None if it is not a live location.
2180
+ :param int reply_to: The ID of the :py:class: `~botogram.Message ` this one is replying to
2132
2181
:param object attach: An extra thing to attach to the message.
2133
2182
:param object extra: An extra reply interface object to attach
2134
2183
:param bool notify: If you want to trigger the client notification.
@@ -2143,6 +2192,10 @@ about its business.
2143
2192
2144
2193
Now the method returns the sent message
2145
2194
2195
+ .. versionchanged :: 0.7
2196
+
2197
+ Now the method supports live locations
2198
+
2146
2199
.. py :method :: reply_with_venue(latitude, longitude, title, address, [foursquare=None , attach=None , extra=None , notify=True ])
2147
2200
2148
2201
Reply to this message with a venue. A venue is made of its geographic
0 commit comments