Any To BOOLEAN π½
Relabel a signal so a flag port accepts it
- any
- BOOLEAN
Any To BOOLEAN is a type adapter in the Telegram Suite's converter family: it takes whatever lands on its any input and declares the output a BOOLEAN. The value passes through unchanged. It doesn't evaluate truthiness, it doesn't turn "yes" into True - it just changes the type label so ComfyUI's strict type checking lets the wire connect.
When it earns its keep
Boolean ports are everywhere in ComfyUI workflows - enable/disable toggles, denoise style flags, "send as file" switches. They usually get their values from a toggle widget or another node's BOOLEAN output, and both of those connect fine without help. The moment you need this node is when a boolean should be driven by something that came through the suite's trigger mechanism, because trigger outputs are typed * (wildcard), and ComfyUI won't plug a wildcard wire into a BOOLEAN port. Any To BOOLEAN is the bridge: wildcard in, boolean-labeled out.
The pattern (from the Send Chat Action article): a signal goes through a trigger to force execution order, and afterward you convert it back to its real type. If that signal's destination is a boolean flag, this is your converter. It's also the generic fix for any * output that needs to reach a boolean input.
What it is not
There's a real temptation to read "Any To BOOLEAN" as "convert my string/INT to True or False." That's not this node, and it's a trap worth naming: since nothing is converted, a non-boolean value flowing into a boolean port can do surprising things downstream. If you genuinely need to compute a boolean from a condition, you want a node that evaluates logic - not a type cast. This one only changes what ComfyUI believes the type is.
Install
Standard 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 extra dependencies, no downloads. It's a two-line class in the pack's converters.py - which is honestly the best way to understand what it does: it returns the input unchanged under a new type name.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| any | * | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | β |