/tgapi/bot{TOKEN}/{method} transparently forwards all requests to api.telegram.org.
Usage
Replace the Telegram API base URL in your backend:Authentication
No additional auth required — the bot token in the URL is the authorization (same as Telegram API).Message Capture
For send methods, the proxy extracts the sent message from the Telegram response and saves it to the database.Long Poll Interception
Whenlong_poll_enabled is set, getUpdates requests are intercepted and served from BotMux’s internal UpdateQueue instead of forwarding to Telegram.