Message
TheMessage interface represents a scheduled message in the system. It contains all the information needed to send a message to a recipient at a specific time.
Type Definition
Properties
Unique identifier for the message.
The message content/body to be sent. Must not be empty.
The recipient’s phone number in Bangladesh format.
Number of days to wait before sending the message. Minimum value is 1.
This represents days, not hours or minutes. A value of
7 means the message will be sent 7 days after creation.Information about the recipient.
Timestamp when the message was created in the system.
Usage
This type is used throughout the application: In Components:Messages.tsx:55- Mapping over messages arrayMessages.tsx:77- Message component props
- Returned from
GET /messages/allendpoint - Used in message creation and update operations
Related Types
- People - Recipient information
- MessagePrevState - Message form state