UNPKG

@wppconnect-team/wppconnect

Version:

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligen

46 lines (45 loc) 1.02 kB
/** * Interface de dados para os eventos de Localização em tempo real */ export interface LiveLocation { /** * Tipo de evento de Localização em tempo real * * enable - Quando inicia o compartilhamento * * update - Atualzação de localização * * disable - Fim do compartilhamento */ type: 'enable' | 'update' | 'disable'; /** * ID de contato que realizou o compartilhamento */ id: string; /** * Latitude em graus */ lat: number; /** * Longitude em graus */ lng: number; /** * Velocidade atual em milhar por hora (mp/h) */ speed: number; /** * Precisão da localização em metros */ accuracy?: number; /** * Tempo em segundos após o último compartilhamento */ elapsed?: number; /** * Graus de direção */ degrees?: number; /** * Tempo em segundos para o compartilhamento * Somente no type:enable */ shareDuration?: number; }