GetAct
The GetAct action retrieves an act (event or message) by its ID. An act represents a discrete event in the system, such as a message, command, or system event. This is useful for accessing the details of a specific act, including its arguments and metadata.
GetAct(
id: str
)
Where:
- id: The ID of the act to retrieve.
Example
{% set act = GetTriggeredAct() %}
{% set original_act = GetAct(id=act.commandActId) %}
{{SendMessage(message=original_act.arguments.message)}}The above code snippet retrieves the current triggered act, then uses its commandActId to fetch the original act that initiated the command. It then sends the original act's message argument to the chat.
Updated 4 days ago
