{"library":"node-red-contrib-telegrambot","title":"Node-RED Telegram Bot Nodes","description":"This package provides a comprehensive collection of Node-RED nodes specifically designed for integrating Telegram bot functionality into Node-RED flows. It allows users to easily create Telegram bots that can send and receive messages, handle various event types (like commands, callback queries, and media), and interact with the Telegram Bot API without writing extensive JavaScript code. The current stable version is 17.1.3, with regular updates addressing bug fixes, new Telegram API features, and behavioral improvements. Recent releases, such as v17.1.0, introduced significant changes to message queuing and flood control mechanisms to enhance stability and compliance with Telegram's API limits. Its key differentiator is the visual programming approach provided by Node-RED, enabling rapid development and deployment of Telegram bots through a drag-and-drop interface. It abstracts much of the complexity of the underlying `node-telegram-bot-api` library, focusing on flow-based interaction.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-red-contrib-telegrambot"],"cli":null},"imports":["Install 'node-red-contrib-telegrambot' via Node-RED Palette Manager. Drag a 'Telegram Bot' config node from the palette onto the workspace.","Install 'node-red-contrib-telegrambot'. Drag a 'Telegram Receiver' node from the palette onto the workspace.","Install 'node-red-contrib-telegrambot'. Drag a 'Telegram Sender' node from the palette onto the workspace."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"[\n    {\n        \"id\": \"e7b0d1e2.123456\",\n        \"type\": \"tab\",\n        \"label\": \"Telegram Echo Bot Example\",\n        \"disabled\": false,\n        \"info\": \"This flow demonstrates a basic Telegram echo bot using node-red-contrib-telegrambot.\"\n    },\n    {\n        \"id\": \"a1b2c3d4.789012\",\n        \"type\": \"telegrambot-config\",\n        \"name\": \"MyTelegramBot\",\n        \"bottoken\": \"process.env.TELEGRAM_BOT_TOKEN ?? ''\",\n        \"polling\": \"true\",\n        \"filter_chats\": \"\",\n        \"filter_users\": \"\",\n        \"filter_events\": \"text,command\",\n        \"store_user_profile\": \"false\",\n        \"x\": 200,\n        \"y\": 100,\n        \"wires\": []\n    },\n    {\n        \"id\": \"f5e6d7c8.123456\",\n        \"type\": \"telegram receiver\",\n        \"name\": \"Telegram Receiver\",\n        \"bot\": \"a1b2c3d4.789012\",\n        \"x\": 200,\n        \"y\": 200,\n        \"wires\": [\n            [\"g9h0i1j2.789012\", \"k3l4m5n6.789012\"]\n        ]\n    },\n    {\n        \"id\": \"g9h0i1j2.789012\",\n        \"type\": \"debug\",\n        \"name\": \"Received Message\",\n        \"topic\": \"\",\n        \"payload\": \"payload\",\n        \"payloadType\": \"msg\",\n        \"status\": \"\",\n        \"x\": 450,\n        \"y\": 160,\n        \"wires\": []\n    },\n    {\n        \"id\": \"k3l4m5n6.789012\",\n        \"type\": \"function\",\n        \"name\": \"Echo Message\",\n        \"func\": \"msg.payload = {\\n    chatId: msg.payload.chatId,\\n    type: 'message',\\n    content: `You said: ${msg.payload.content}`\\n};\\nreturn msg;\",\n        \"outputs\": 1,\n        \"noerr\": 0,\n        \"initialize\": \"\",\n        \"finalize\": \"\",\n        \"libs\": [],\n        \"x\": 430,\n        \"y\": 240,\n        \"wires\": [\n            [\"o7p8q9r0.123456\"]\n        ]\n    },\n    {\n        \"id\": \"o7p8q9r0.123456\",\n        \"type\": \"telegram sender\",\n        \"name\": \"Telegram Sender\",\n        \"bot\": \"a1b2c3d4.789012\",\n        \"x\": 660,\n        \"y\": 240,\n        \"wires\": [\n            []\n        ]\n    }\n]","lang":"javascript","description":"This Node-RED flow demonstrates a simple Telegram echo bot. It receives text messages, logs them to the debug sidebar, and then sends back the received message content prefixed with 'You said: ' to the same chat. Remember to replace 'process.env.TELEGRAM_BOT_TOKEN ?? ''' with your actual bot token, ideally stored in an environment variable for security, within the 'MyTelegramBot' configuration node.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}