Creates an instance of TelegramBotService
Bot configuration
Gets the bot instance (for advanced operations)
Bot instance
Gets information about a chat
Chat identifier
Chat information
Gets recent messages from a chat (if using polling)
Chat identifier
Number of messages to retrieve
Recent messages
Initializes the bot instance
Sends a document
Document options
Sent message object
Sends a text message
Message options
Sent message object
Sends a photo
Photo options
Sent message object
Shuts down the bot service
Service for interacting with Telegram Bot API
TelegramBotService
Example