How to send messages via the calculator
line_send_message(platform_id, text, buttons, attachments, quote_token, bot_group_id)
The function helps you send messages to the specified chat.
| Parameters | Description |
|---|---|
| **!** platform_id |
The chat ID in LINE. You can pass the system variable |
| text |
Message text. An optional parameter if the |
| buttons |
An array of buttons in the message. |
| attachments |
An array of attachments. |
| quote_token |
Reply token for responding to a specific message. You can pass the line_quote_token variable. |
| bot_group_id |
Group ID of the bot. Can be provided if you need to send a message on behalf of another connected bot. An optional parameter. |
An array of buttons in the message
Параметр buttons формируется также как кнопки в блоке воронки. Чтобы упростить формирование массива, можно в блоке воронки создать кнопки с помощью интерфейса и скопировать сформированные данные.
Step 1. Create buttons in the block.

Step 2. Copy the Advanced button settings.

Example of a buttons array:
[{"line":0,"index_in_line":0,"text":"Visit site","type":"inline","url":"https://google.com","callback_link":false}]
An array of attachments
The attachments parameter is an array of dictionaries that define the attachments to be sent.
Each attachment in the array must include the attachment type (attachment_type) and its URL (attachment_url).
Пример:
attach_list = [{"attachment_type": "image", "attachment_url": "https://files.site.com/my_image.jpg"}]
Possible values for attachment_type:
- image
- video
- audio