Creates an instance of TelegramBotService
Service configuration
Answers a callback query
Callback query ID
Answer options
Success status
Gets the bot instance for advanced operations
The bot instance
Gets chat information
Chat ID
Chat information
Gets chat member count
Chat ID
Member count
Initializes the bot connection.
By default the bot is created in send-only mode (no polling, no webhook). This avoids taking over another process that may already be polling the same bot token — which would cause Telegram to kick the existing poller and potentially trigger unwanted side-effects such as the other process re-registering its own command menu.
Polling / webhooks are only started when explicitly configured.
Registers a callback query handler
Handler function
Registers a message handler
Message pattern to match
Handler function
Pins a message in a chat
Chat ID
Message ID to pin
Disable notification
Success status
Sends a document
Chat ID
Document URL or buffer
Additional options
Sent message
Sends a text message
Message options
Sent message
Sends a photo
Chat ID
Photo URL or buffer
Additional options
Sent message
Shuts down the bot connection
Service for interacting with Telegram Bot API
TelegramBotService