Nodes/ComfyUI Telegram Suite/Any To MODEL 🔽
ComfyUI Node

Any To MODEL 🔽

Restore a model's type after a trigger

By SwissCore92·Created about a year ago·Updated 2 months ago· 9
Any To MODEL 🔽
  • any
  • MODEL

Any To MODEL is the reverse of MODEL To Any, and it's the direction you're actually more likely to need. It takes any input and declares the output a MODEL, passing the object through untouched. No loading, no quantizing, no conversion - just a type label that tells ComfyUI "this wire is a model now."

Why this direction matters

The Telegram Suite's trigger mechanism (the execution-ordering trick explained in the Send Chat Action article) routes signals through wildcard-typed * ports. The asymmetry is the whole story: feeding a typed output into a trigger input now works directly - the README dropped the old "convert to ANY first" requirement - but a trigger output is typed *, and ComfyUI's strict type checking won't let a wildcard wire into a MODEL port. So after a signal has passed through a trigger, you convert it back with Any To MODEL to restore its real type. That's the one job this node has, and it does it with zero settings.

The counterpart, MODEL To Any, has quietly become the legacy half of the pair - it's only needed if you're still following the old pattern of converting a model to * before feeding a trigger input, which the README explicitly says is no longer required.

The honest take

Let's be blunt: pushing an actual MODEL through a trigger is unusual. The README's own example uses a seed INT as the ordering signal, because the point of a trigger is to make the downstream node require your node to run first - and a seed is a clean, light dependency to hang that on. Hauling a diffusion model through a wildcard port just to pin order adds wiring noise for no gain. Where this node genuinely earns its place is as the generic unblocker: any * output from another node that needs to reach a MODEL port. When a wire won't connect and the error is a type mismatch, this is the adapter that finishes the job.

Input and output

One any input, one MODEL output. Nothing else. It's a two-line class in the pack's converters.py - literally return (any,) under a new type name.

Install

Shared pack install:

cd ComfyUI/custom_nodes
git clone https://github.com/SwissCore92/comfyui-telegram-suite.git
cd comfyui-telegram-suite
pip install -r requirements.txt

Or "ComfyUI Telegram Suite" from ComfyUI Manager. No model files, no downloads - the converters ship inside the pack. If you never play with triggers, you'll probably never open this node, and that's fine.

CategoryTelegram Suite 🔽/converters

Inputs (1)

NameTypeDefaultDescription
any*

Outputs (1)

NameTypeDescription
MODELMODEL