Comparing version 3.0.1 to 3.0.2
@@ -555,18 +555,24 @@ import { Boolean, Float, Integer, String, True } from "./alias"; | ||
/** This object represents a point on the map. */ | ||
export interface Location { | ||
/** Longitude as defined by sender */ | ||
longitude: Float; | ||
/** Latitude as defined by sender */ | ||
latitude: Float; | ||
/** The radius of uncertainty for the location, measured in meters; 0-1500 */ | ||
horizontal_accuracy?: Float; | ||
/** Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only. */ | ||
live_period?: Integer; | ||
/** The direction in which user is moving, in degrees; 1-360. For active live locations only. */ | ||
heading?: Integer; | ||
/** Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. */ | ||
proximity_alert_radius?: Integer; | ||
export namespace Location { | ||
export interface CommonLocation { | ||
/** Longitude as defined by sender */ | ||
longitude: Float; | ||
/** Latitude as defined by sender */ | ||
latitude: Float; | ||
/** The radius of uncertainty for the location, measured in meters; 0-1500 */ | ||
horizontal_accuracy?: Float; | ||
} | ||
export interface LiveLocation extends CommonLocation { | ||
/** Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only. */ | ||
live_period: Integer; | ||
/** The direction in which user is moving, in degrees; 1-360. For active live locations only. */ | ||
heading: Integer; | ||
/** Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. */ | ||
proximity_alert_radius?: Integer; | ||
} | ||
} | ||
/** This object represents a point on the map. */ | ||
export type Location = Location.CommonLocation | Location.LiveLocation; | ||
/** This object represents a venue. */ | ||
@@ -573,0 +579,0 @@ export interface Venue { |
{ | ||
"name": "typegram", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Type declarations for the Telegram API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -136,3 +136,3 @@ # Types for the Telegram API | ||
Note that interfaces other than the ones mentioned above are unaffected by the customization through `MyInputFile`. | ||
They can simply continued to be imported directly from `typegram`. | ||
They can simply continue to be imported directly from `typegram`. | ||
@@ -139,0 +139,0 @@ ## Where Do the Types Come from |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210240
3442