Scheduled Messages
Schedule and send messages in the future.
Last updated
Schedule and send messages in the future.
Last updated
schedule(send_at=Time, tag=Symbol)
Platform | Supported |
---|---|
To send scheduled messages, there is a process that must be running. It can be started as follows:
If the tag argument has been included in the creation of a scheduled message, as the example bellow:
Then the following methods of the User
model can be called:
destroy_scheduled_messages(tag=Symbol)
Deletes the scheduled message associated with the provided tag.
reschedule_message(tag=Symbol)
Re-Schedule the messages associated with the provided tag.
scheduled_message?(tag=Symbol)
Checks if there is a scheduled message associated with the provided tag.
Name | Description |
---|---|
Messenger
Telegram
send_at
Time
Required.
The date and time when message(s) will be sent.
tag
Symbol
Optional. Scheduled message identification tag, can be any symbol.