















This project enables the use of ComfyUI Workflows in Telegram.
[!IMPORTANT]
This node works on Bot provided by Telegram so if you want to change Bot register New bot using BotFather and change BOT_TOKEN in
telegram.json
[!IMPORTANT]
Supports group chat. add bot to a group and any user can give commands of that group.
comfy-clicomfy node registry-install ComfyUI-TGComfyUI\custom_nodes and Run CMD.git clone https://github.com/daxcay/ComfyUI-TG.gitCustom Nodes Manager and search for ComfyUI-TG, then install this node.> [!CAUTION]
> Update to nodejs version v20.17.0 if you already have it. https://nodejs.org/dist/v20.17.0/node-v20.17.0-x64.msi
>[!IMPORTANT]
> #### Restart ComfyUI and Stop ComfyUI before proceeding to next step
[!IMPORTANT]
#### Enable dev mode and save workflow in
apiformat to make it compatible.
Drive:/ComfyUI_windows_portable/TelegramDrive:/StabilityMatrix/Packages/ComfyUI/TelegramDrive:/StabilityMatrix/Data/Packages/ComfyUI/TelegramFrom ComfyUI/Telegram folder open telegram.json
[!IMPORTANT]
Fill
BOT_TOKENand save it.
[!IMPORTANT]
#### Start ComfyUI before proceeding to next step
To upload a workflow to be used in in telegram use the workflow button in telegram dashboard.
[!IMPORTANT]
#### Attach
TG-ImageSaverNode before saving the workflow in api format
Now upload it in workflow section
Writing /c or /start will also provide the list of all commands:
https://github.com/user-attachments/assets/e3b1d267-11b6-46b8-8a80-8d2c4b9512c5
/s 25 0 and send like this/s 25 0 {file} as it reside in Comfy/Input folder.This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Telegram or any of its subsidiaries or its affiliates. The official Telegram website can be found at https://telegram.org/. “Telegram” as well as related names, marks, emblems and images are registered trademarks of their respective owners.
I have used NodeJS and ‘Python` combined to make this project the library, I am using the following library in nodejs to enable telegram functionality.
https://github.com/yagop/node-telegram-bot-api