You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_integrations/telegram_bot.markdown
+73Lines changed: 73 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,8 @@ Send a notification.
209
209
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
210
210
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
211
211
212
+
This action returns a [send message response](#send-message-response).
213
+
212
214
### Action `telegram_bot.send_photo`
213
215
214
216
Send a photo.
@@ -235,6 +237,8 @@ Send a photo.
235
237
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
236
238
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
237
239
240
+
This action returns a [send message response](#send-message-response).
241
+
238
242
### Action `telegram_bot.send_video`
239
243
240
244
Send a video.
@@ -260,6 +264,8 @@ Send a video.
260
264
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
261
265
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
262
266
267
+
This action returns a [send message response](#send-message-response).
268
+
263
269
### Action `telegram_bot.send_animation`
264
270
265
271
Send an animation.
@@ -286,6 +292,8 @@ Send an animation.
286
292
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
287
293
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
288
294
295
+
This action returns a [send message response](#send-message-response).
296
+
289
297
### Action `telegram_bot.send_voice`
290
298
291
299
Send a voice message.
@@ -311,6 +319,8 @@ Send a voice message.
311
319
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
312
320
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
313
321
322
+
This action returns a [send message response](#send-message-response).
323
+
314
324
### Action `telegram_bot.send_sticker`
315
325
316
326
Send a sticker.
@@ -336,6 +346,8 @@ Send a sticker.
336
346
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
337
347
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
338
348
349
+
This action returns a [send message response](#send-message-response).
350
+
339
351
### Action `telegram_bot.send_document`
340
352
341
353
Send a document.
@@ -362,6 +374,8 @@ Send a document.
362
374
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
363
375
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
364
376
377
+
This action returns a [send message response](#send-message-response).
378
+
365
379
### Action `telegram_bot.send_location`
366
380
367
381
Send a location.
@@ -381,6 +395,8 @@ Send a location.
381
395
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
382
396
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
383
397
398
+
This action returns a [send message response](#send-message-response).
399
+
384
400
### Action `telegram_bot.send_poll`
385
401
386
402
Send a poll.
@@ -399,6 +415,8 @@ Send a poll.
399
415
| `reply_to_message_id` | yes | Mark the message as a reply to a previous message. In `telegram_callback` handling, for example, you can use {% raw %}`{{ trigger.event.data.message.message_id }}`{% endraw %} |
400
416
| `message_thread_id` | yes | Send the message to a specific topic or thread.|
401
417
418
+
This action returns a [send message response](#send-message-response).
419
+
402
420
### Action `telegram_bot.send_chat_action`
403
421
404
422
Send a chat action. Use it to notify the user with the relevant "typing" action when a bot response may be delayed, so they know a message is coming soon. Telegram clears this status after 5 seconds or when the reply arrives.
@@ -512,6 +530,40 @@ Sets the bot's reaction for a given message.
512
530
| `reaction` | no | Emoji to react to the message with. |
513
531
| `is_big` | yes | Whether to use a large variant of the reaction animation. |
514
532
533
+
## Response schemas for actions
534
+
535
+
{% tip %}
536
+
537
+
Responses can be accessed using the `response_variable` of actions.
538
+
You can refer to the [send a message then edit it after a delay](#example-send_message-then-edit-it-after-a-delay) automation for an example of usage of the response.
539
+
540
+
{% endtip %}
541
+
542
+
### Send message response
543
+
544
+
Response schema:
545
+
546
+
| Data attribute | Optional | Type | Description |
0 commit comments