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

Any To STRING 🔽

The type adapter you're most likely to actually use

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

Any To STRING is the Telegram Suite's type adapter for text - take any input, declare the output a STRING, pass the value through untouched. No stringification, no JSON dump, no formatting. Like the other nineteen converters in this pack, it exists purely to satisfy ComfyUI's strict type checking.

Why you'd reach for it

Strings are the most common thing to push through the suite's trigger mechanism. Trigger outputs are typed * (wildcard), and text is everywhere in workflows - prompts, filenames, captions, status lines - so when you want a prompt or a caption to also serve as an execution-order signal, Any To STRING is the bridge that gets it back to a typed STRING port afterward. The trigger dance is explained properly in the Send Chat Action article; the short version is: signal in as *, convert back to STRING, feed it to anything that wants text.

It's also the generic unblocker when any other node hands you a * output and the port downstream wants a string. In the Telegram Suite specifically, this pattern shows up constantly because the send nodes take text inputs (text, caption) - and those same nodes carry trigger ports. A workflow that both sends a message and uses that message's text as an ordering signal is exactly where this converter lives.

The trap

Because it's a pure relabel, it won't convert a number into "42" or a dict into pretty JSON. If you feed it a DICT, downstream string consumers get the raw dict object, which may or may not print usefully. If you genuinely need a formatted string from structured data, that's a job for a string-formatting or JSON node, not a type cast. But for the common case - "I have a text value, it came out of a wildcard, let me plug it back into a STRING port" - this is the right tool, and it has zero settings to get wrong.

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 part of the pack's converters.py, installed automatically with the rest of the suite.

CategoryTelegram Suite 🔽/converters

Inputs (1)

NameTypeDefaultDescription
any*

Outputs (1)

NameTypeDescription
STRINGSTRING