/**
* Location sharing event data received when a user responds to a `requestUserLocation` button and shares their current location.
*
* This event contains the geographic coordinates (latitude/longitude) and human-readable address of the location the user chose to share. Use this data to process location-based requests or provide location-specific services.
*/
export interface MessageEventRcsLocationData {
/**
* Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`.
* To get the message details, use the [GET /messages/{id}](/api-reference/messages/get) endpoint.
*/
id: string;
/** Location data shared by the user. */
data: MessageEventRcsLocationData.Data;
/** ID of the message this button was sent in, or null if not available. To get the message details, use the [GET /messages/{id}](/api-reference/messages/get) endpoint. */
messageId?: string | null;
}
export declare namespace MessageEventRcsLocationData {
/**
* Location data shared by the user.
*/
interface Data {
/** Address corresponding to the shared location. */
address: string;
/** Latitude of the shared location. */
latitude: number;
/** Longitude of the shared location. */
longitude: number;
/** Text message sent with the location. */
text?: string;
}
}