◀️ A fully autonomous functioning bot for Telegram made completely inside a single ComfyUI workflow without any 3rd party software and complicated server setups. Simply copy your bottoken, hit Run and that's it !...
Runtime profile
Source description
◀️ A fully autonomous functioning bot for Telegram made completely inside a single ComfyUI workflow without any 3rd party software and complicated server setups. Simply copy your bot_token, hit Run and that's it ! Share your bot with friends on Telegram so they can generate something using ComfyUI, running on your computer!
🔥🔥🔥 VERSION 2 IS OUT! 🔥🔥🔥
TLDR : Completely overhauled bot logic and custom nodes used. All of the previous shortcomings and issues were addressed and fixed! Massively improved latency and robustness, as well as compatibility. Added new commands and features, including video generation via Minimax H3.
Now it is a fully fledged and optimized All-in-One bot workflow/framework with multiple features and functionalities that include:
Unified message receiver : the bot can now receive all of the main media types – text, image, audio and video! (current workflow version only utilizes text and image inputs)
Sources
1 sourceSource excerpts
2 excerptsSource context: 275 downloads · Type Workflows · Base model Krea 2
Smart message handler : the bot accepts different commands that change its state, enabling turn-based operation.
Different generators : text2image (Krea-2), image edit (Flux2 Klein), LLM chat with TTS voiceover (Omnivoice), text2video, image2video and reference2video (Minimax H3). For the purpose of using image-requiring functions, the bot can accept an uploaded image or automatically use previously generated one.
Independent persistent cache of chat data for every user : saved image (for image-requiring functions), generation parameters set by the user (chosen aspect ratio, video duration and workflow state are saved in special config files) and LLM chat history. All of this data is saved independently for different users that interact with the bot (based on their ChatID), thus, excluding any possibility of potential data sharing between them.
Multiple users can interact with the bot at the same time without any errors or bugs. Though the bot cannot answer while generating something, so the messages are queued.
Blacklist/whitelist access modes : allows you to set the access mode for your bot and specify ChatIDs that can or can’t interact with it.
Of course, you can expand upon those features if you figure out the workflow structure. I added some notes inside the workflow to explain how it works.
To summarize, this workflow was designed as a general modular framework for building a multi-purpose bot that allows two-way communication between ComfyUI and Telegram through HTTP calls (Long Polling). And because the bot is entirely contained in ComfyUI, it allows to use the platform’s full functionality and limitless potential. If you can find good custom node packs for other apps like Discord, you can probably make a similar bot for them as well. Just swap the receiver and sender nodes.
⚡️ Ok, so how do you actually set up the bot and use the workflow?
Download this V2 workflow, install missing custom nodes using Manager and download required models (diffusion models, text encoders, VAE, etc.).
Create a new bot using @BotFather and get your bot's unique HTTP API token (just google it if you are not sure how to do that). The token should look like this: 0123456789:AbCdEfGhIjKlMnOpQrStUvWxYz0AbCdEfGh
Inside the workflow copy the bot token into the dedicated text node (purple, on the top-left), which is connected to all Telegram nodes.
Finally, change the workflow queue mode from simple " Run " to " Run (Instant) ". Now run the workflow and the bot should work for you and everyone you share it with! (ignore any "missing input" errors, they don't block the workflow from running)
⚙️ Required custom nodes:
All of the required custom nodes can be easily installed through the Manager (“Install missing custom nodes” button). Previous Telegram packs I used in V1 and V1.1 (kept both workflows as legacy) were lacking features and optimization. So, I decided to make a new improved unified pack myself:
Additionally, I made another pack of utility nodes that were designed specifically to support this new bot workflow:
Both of these packs are required for V2 workflow. Other required packs include:
https://github.com/rgthree/rgthree-comfy https://github.com/kijai/ComfyUI-KJNodes https://github.com/yolain/ComfyUI-Easy-Use ( ⚠️ make sure to update this one if you already have it, otherwise “Inversed Switch” nodes will produce errors) https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes https://github.com/huwhitememes/comfyui-krea2-conditioning https://github.com/kantan-kanto/ComfyUI-LLM-Session (if getting errors with LLM node try downgrading to version 1.4.0) https://github.com/Saganaki22/ComfyUI-OmniVoice-TTS ( ⚠️ requires transformers>=5.3.0; if link is missing, try downloading manually from https://registry.comfy.org/nodes/ComfyUI-omnivoice-tts ) https://github.com/pytraveler/MiniMax-H3-Prompt-Rewriter-ComfyUI https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo (custom sampler and turbo LoRA loader)
🛠️ Compatibility:
V2 workflow is tested on Portable ComfyUI 0.37.0 and updated custom node packs. Python version 3.12.7; PyTorch version 2.14.0+cu130; 16GB VRAM; 64 GB RAM. If you have low memory hardware, use low-bit quants of the models (int4, nvfp4 or ggufs).
The LLM voiceover uses OmniVoice TTS, which requires transformers>=5.3.0. If you have a prior version (4.x), installation of this pack will attempt to upgrade several dependencies, including torch , which will BRICK your ComfyUI. Though this TTS is one of the best for voiceover of long texts atm, you can swap it for different one that works for you. Aside from that, other custom nodes have low requirements and will probably run on any ComfyUI build.
📂 Models used:
Native implementation of Krea-2 image generator: https://huggingface.co/Comfy-Org/Krea-2
Native implementation of Flux.2 Klein 9B image editor: https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9b-fp8 https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-9b
LLM used in the demo: MN-VelvetCafe-RP-12B-V2.Q6_K.gguf. It is multilingual and quite good for RP ( ͡° ͜ʖ ͡°) but gets kinda dumb after several turns. Can be found here: https://huggingface.co/mradermacher/MN-VelvetCafe-RP-12B-V2-GGUF Placed in \ComfyUI\models\LLM. Overall, to reliably produce TTS-compatible text for voice lines I would recommend something like good old Qwen3.
OmniVoice TTS node automatically downloads its model into \ComfyUI\models\omnivoice\ (3 GB total).
Included a clean sample of Trump speaking and transcription this time (put audio and json in \ComfyUI\models\SPEAKERS\ so it can appear in the “Load Speaker” node). You can use other voice reference, in which case don't forget to tweak the system prompt for LLM.
Video functions T2V, I2V and Ref2V all use unified and finetuned Minimax H3 Singularity: Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors. Text encoder and VAE come from official repo. https://huggingface.co/WarmBloodAban/Minimax-h3_Singularity/blob/main/Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors https://huggingface.co/Comfy-Org/MiniMax-H3 For turbo LoRA I strongly recommend the one from Larryvrh (uses custom sampler and lora loader nodes): https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/blob/main/minimax_h3_turbo_v4_step600_ema.safetensors
Minimax H3 prompt rewriter node automatically downloads Qwen2.5-Omni-7B-Q4_K_M.gguf, its respective mmproj and rewriting LoRA into ComfyUI\models\LLM\ (9 GB total).
⚠️ If Telegram is banned in your country:
Because the bot uses ComfyUI for HTTP calls, it does not connect to your installed Telegram app in any way and thus, cannot utilize its custom built-in protocols like MTProto or SOCKS for connection with Telegram servers. This means that if Telegram is blocked in your country, the bot will not be able to call the server. To bypass these restrictions, I recommend using Cloudflare's WARP ( https://one.one.one.one/ ) ( Traffic and DNS (UDP) or Traffic and DNS (HTTPS) modes) or a VPN.
📝 Other useful stuff and tips:
Click on your bot above the chat window → Manage → Edit Commands → after choosing "Edit Commands", send the command list to @BotFather :
start - Bot info image_from_text - T2I: generate an image image_edit - Edit saved image talk - Send a message to Donald Trump video_from_text - T2V: generate a video video_from_image - I2V: video starts from saved image video_from_reference - Ref2V: video uses saved image as reference
This should open a page with a simple text string like this:
{"ok":true,"result":[]}
If instead the page isn't loading at all, then ComfyUI would not be able to receive any messages from the bot or send output back. This is due to either Telegram being blocked in your country, or Telegram bot servers are temporarily offline.
All of the cached data is stored inside this subfolder: \ComfyUI\output\telegram_bot\
\ComfyUI\output\telegram_bot\images\ – saved images.
\ComfyUI\output\telegram_bot\configs\ – user configs.
\ComfyUI\output\telegram_bot\llm_history\ – LLM talk history.
\ComfyUI\output\telegram_bot\videos\ – generated videos are stored indefinitely.
The name of each of those files corresponds to the ChatID of the user that interacted with the bot.
Requirements
Checkpoint · 8.79 GB · SAFETENSORS · Unknown
flux2-vae.safetensors
File unverifiedVAE · Unknown
krea2_turbo_fp8_scaled.safetensors
Not resolvedCheckpoint · Unknown
MN-VelvetCafe-RP-12B-V2.Q6_K.gguf
File unverifiedCheckpoint · Hugging Face · mradermacher/MN-VelvetCafe-RP-12B-V2-GGUF · MN VelvetCafe RP 12B V2 GGUF
Text encoder · 8.07 GB · SAFETENSORS · fp16 · Unknown
VAE · 242 MB · SAFETENSORS · Unknown
Text encoder · 4.88 GB · SAFETENSORS · Unknown
chibi
Not resolvedNode pack · Registry
comfyui_essentials
FoundNode pack · Registry
comfyui-book-tools
FoundNode pack · Registry
Source context: 127 downloads · Type Workflows · Base model Other
Node pack · Registry
comfyui-easy-use
FoundNode pack · Registry
comfyui-impact-pack
FoundNode pack · Registry
Node pack · Registry
Node pack · Registry
comfyui-telegram-suite
FoundNode pack · Registry
comfyui-videohelpersuite
FoundNode pack · Registry
rgthree-comfy
FoundNode pack · Registry