UNPKG

typescript-telegram-bot-api

Version:

Telegram Bot API wrapper for Node.js written in TypeScript

34 lines (33 loc) 985 B
/** * ## Location * his object represents a point on the map. * @see https://core.telegram.org/bots/api#location */ export type Location = { /** * Latitude as defined by the sender */ latitude: number; /** * Longitude as defined by the sender */ longitude: number; /** * Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ horizontal_accuracy?: number; /** * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. * For active live locations only. */ live_period?: number; /** * Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */ heading?: number; /** * Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent * live locations only. */ proximity_alert_radius?: number; };