{
    "name": "Detect text within new Telegram images using Google Cloud Vision (OCR) and send it as a new message in Telegram",
    "flow": [
        {
            "id": 9,
            "module": "telegram:WatchUpdates",
            "version": 1,
            "parameters": {},
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": -347,
                    "y": -8
                },
                "restore": {},
                "parameters": [
                    {
                        "name": "__IMTHOOK__",
                        "type": "hook",
                        "label": "Webhook",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 10,
            "module": "telegram:DownloadFile",
            "version": 1,
            "parameters": {},
            "mapper": {
                "fileId": "{{9.channel_post.attachment.file_id}}"
            },
            "metadata": {
                "designer": {
                    "x": -45,
                    "y": -18
                },
                "restore": {},
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "fileId",
                        "type": "text",
                        "label": "File ID",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 3,
            "module": "googlecloudvision:DetectText",
            "version": 1,
            "parameters": {},
            "mapper": {
                "data": "{{10.fileOutput}}",
                "imageSendMethod": "send_type_data",
                "isToOptimizeDetection": false,
                "isToIncludeFullTextAnnotation": false
            },
            "metadata": {
                "designer": {
                    "x": 311,
                    "y": -11
                },
                "restore": {
                    "imageSendMethod": {
                        "label": "Data"
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "imageSendMethod",
                        "type": "select",
                        "label": "Data/URL",
                        "required": true,
                        "validate": {
                            "enum": [
                                "send_type_data",
                                "send_type_url"
                            ]
                        }
                    },
                    {
                        "name": "isToOptimizeDetection",
                        "type": "boolean",
                        "label": "Optimize the detection for dense text and documents",
                        "required": true
                    },
                    {
                        "name": "isToIncludeFullTextAnnotation",
                        "type": "boolean",
                        "label": "Include full text annotation",
                        "required": true
                    },
                    {
                        "mean": "data",
                        "name": "data",
                        "type": "buffer",
                        "label": "Data",
                        "required": true
                    }
                ],
                "advanced": true
            }
        },
        {
            "id": 11,
            "module": "telegram:SendReplyMessage",
            "version": 1,
            "parameters": {},
            "mapper": {
                "text": "{{3.fullTextAnnotation.text}}",
                "parseMode": "",
                "replyMarkup": "",
                "replyToMessageId": ""
            },
            "metadata": {
                "designer": {
                    "x": 593,
                    "y": -1
                },
                "restore": {
                    "parseMode": {
                        "label": ""
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "chatId",
                        "type": "text",
                        "label": "Chat ID",
                        "required": true
                    },
                    {
                        "name": "text",
                        "type": "text",
                        "label": "Text",
                        "required": true
                    },
                    {
                        "name": "parseMode",
                        "type": "select",
                        "label": "Parse mode",
                        "validate": {
                            "enum": [
                                "Markdown",
                                "HTML"
                            ]
                        }
                    },
                    {
                        "name": "disableNotification",
                        "type": "boolean",
                        "label": "Disable notification"
                    },
                    {
                        "name": "disableWebPagePreview",
                        "type": "boolean",
                        "label": "Disable link previews"
                    },
                    {
                        "name": "replyToMessageId",
                        "type": "number",
                        "label": "ID of the original message"
                    },
                    {
                        "name": "replyMarkup",
                        "type": "text",
                        "label": "Reply markup - additonal interface options"
                    }
                ]
            }
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "eu2.make.com",
        "notes": []
    }
}