Telegram Bot
The Telegram Bot package enables you to build powerful automation workflows that interact with Telegram. Create bots that can send messages, receive messages, share files, photos, and audio, and manage Telegram chats programmatically.
Features
- Connect to Telegram using bot tokens
- Send and receive text messages
- Forward messages between chats
- Send photos, audio files, and documents
- Download files from Telegram
- Create invite links for groups and channels
- Get bot information and file paths
Use Cases
- Customer Support Bots - Automate responses to common customer inquiries
- Notification Systems - Send alerts and updates to Telegram channels
- File Distribution - Share documents, reports, and media files
- Data Collection - Receive and process user inputs and files
- Chat Management - Create invite links and manage group communications
- Integration Hub - Connect Telegram with other business systems
Getting Started
To use the Telegram Bot package, you'll need:
- A Telegram bot token from @BotFather
- The chat ID of the target chat or user
Creating a Telegram Bot
- Open Telegram and search for @BotFather
- Start a chat and send
/newbot - Follow the prompts to name your bot
- Save the bot token provided by BotFather
- Add the bot to your desired chats or channels
Finding Chat IDs
To find a chat ID:
- For personal chats: Use the user's Telegram ID
- For groups/channels: Use bots like @userinfobot or check the group info
- From received messages: The chat ID is included in the message object
Available Nodes
Connect
Robomotion.TelegramBot.Connection.Connect
Disconnect
Robomotion.TelegramBot.Connection.Disconnect
Download File
Robomotion.TelegramBot.Files.DownloadFile
Forward Message
Robomotion.TelegramBot.Messages.ForwardMessage
Get Bot Info
Robomotion.TelegramBot.Connection.GetBotInfo
Get File Path
Robomotion.TelegramBot.Files.GetFilePath
Create Invite Link
Robomotion.TelegramBot.Management.CreateInviteLink
Receive Message
Robomotion.TelegramBot.Messages.ReceiveMessage
Send Audio
Robomotion.TelegramBot.Files.SendAudio
Send Document
Robomotion.TelegramBot.Files.SendDocument
Send Message
Robomotion.TelegramBot.Messages.SendMessage
Send Photo
Robomotion.TelegramBot.Files.SendPhoto