typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
22 lines (21 loc) • 538 B
TypeScript
import { User } from './User';
/**
* ## ProximityAlertTriggered
* This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert
* set by another user.
* @see https://core.telegram.org/bots/api#proximityalerttriggered
*/
export type ProximityAlertTriggered = {
/**
* User that triggered the alert
*/
traveler: User;
/**
* User that set the alert
*/
watcher: User;
/**
* The distance between the users
*/
distance: number;
};