The Bot Object
The bot global is a pre-initialized Telegraf instance. Never import or recreate it.
Available methods
Context object
Every handler receives a Telegraf ctx:
Practical notes
The legacy docs repeatedly treated NxCreator as “Telegraf logic with a few exceptions.” That is the right framing. Work with the provided bot object instead of creating a new bot instance or redoing setup that the platform already owns.
When you need handler-specific state, store it in the database or move the conversation into a scene rather than trying to keep cross-user mutable state in memory.
How did this page feel?
Quick feedback helps improve the docs.
Last updated March 22, 2026