Telegram Integration - Bot Messenger avatar
Telegram Integration - Bot Messenger

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Telegram Integration - Bot Messenger

Telegram Integration - Bot Messenger

Send automated messages, alerts & reports via Telegram. Support for groups, channels & direct messages. Perfect for monitoring alerts & team notifications.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

John Rippy

John Rippy

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

1

Monthly active users

13 days ago

Last modified

Share

Telegram Integration

Send Telegram notifications from Apify actors. Notify when runs complete, send data summaries, alerts, and custom messages via Telegram Bot API. Perfect for workflow automation and real-time notifications.

Features

  • Automated data collection
  • Structured output format
  • Error handling
  • Pay-per-event billing

Quick Start

{
"input": "your input here"
}

Demo Mode

Set demoMode: true to test with sample data (no charges). When you're ready for real results, set demoMode: false or omit it.

{
"demoMode": true,
...
}

Input Parameters

ParameterTypeRequiredDefaultDescription
botTokenstringYes*-Telegram Bot API token from @BotFather
chatIdstringYes*-Chat/group/channel ID to send to
messagestringNo-Message text (supports Markdown/HTML)
parseModestringNoMarkdownMarkdown, MarkdownV2, or HTML
disableNotificationbooleanNofalseSend silently (no sound)
imageUrlstringNo-URL of image to attach
documentUrlstringNo-URL of document to attach
replyToMessageIdintegerNo-Reply to a specific message
webhookDataobjectNo-Apify webhook payload to auto-format
webhookUrlstringNo-URL to send results to (Zapier, Make, n8n, etc.)
demoModebooleanNofalseTest without sending (returns sample)

*Not required in demo mode


Output Format

{
"success": true,
"messageId": 12345,
"chatId": "123456789",
"text": "✅ Scraping Complete - 25 new leads!",
"sentAt": "2024-12-23T10:30:00Z"
}

Pricing

This actor uses pay-per-event billing:

Pay-Per-Run

ComponentCost
Apify Compute~$0.001-0.005/run
Telegram APIFree

Cost Comparison

Notifications/MonthThis ActorPagerDutyOpsgenie
100~$0.50$19/mo$19/mo
1,000~$5$19/mo$19/mo
10,000~$50$99/mo$79/mo

No monthly subscription. Pay per notification.


Use Cases

1. Actor Completion Alerts

{
"botToken": "123456:ABC-DEF...",
"chatId": "123456789",
"message": "✅ *Scraping Complete*\n\nFound 25 new leads in Miami!",
"parseMode": "Markdown"
}

2. Webhook Integration (Auto-Trigger)

Set up a webhook on your scraping actor:

{
"botToken": "123456:ABC-DEF...",
"chatId": "-1001234567890",
"webhookData": {
"actorId": "localhowl~local-leads-scraper",
"runId": "abc123",
"status": "SUCCEEDED",
"datasetItemCount": 150
}
}

Auto-formats to:

🤖 Actor Run Complete
Actor: local-leads-scraper
Status:SUCCEEDED
Items: 150
Duration: 2m 34s

3. Daily Summary Reports

{
"botToken": "123456:ABC-DEF...",
"chatId": "123456789",
"message": "📊 *Daily Scraping Report*\n\n• Leads scraped: 500\n• New listings: 23\n• Errors: 0",
"parseMode": "Markdown"
}

4. Error Alerts

{
"botToken": "123456:ABC-DEF...",
"chatId": "123456789",
"message": "❌ *Actor FAILED*\n\nlocal-leads-scraper crashed at 3:42 PM\n\nError: Rate limit exceeded"
}

5. Send Images

{
"botToken": "123456:ABC-DEF...",
"chatId": "123456789",
"message": "📸 Today's best performing post:",
"imageUrl": "https://example.com/chart.png"
}

6. Send Documents/Reports

{
"botToken": "123456:ABC-DEF...",
"chatId": "123456789",
"message": "📄 Weekly report attached:",
"documentUrl": "https://example.com/report.pdf"
}


Common Problems & Solutions

"Invalid API key" error

Cause: Your API key is wrong, expired, or doesn't have the right permissions. Fix: Double-check your API key. Make sure you copied it exactly without extra spaces.

"Rate limit exceeded" error

Cause: You've hit the API's rate limits. Fix: Wait a few minutes, then try again. Consider reducing the number of concurrent requests.

Empty or incomplete results

Cause: The target may have anti-scraping protection or the data doesn't exist. Fix:

  • Check if the URL/search query is correct
  • Try with different parameters
  • Some sites may block automated access

Demo data showing instead of real results

Cause: demoMode is still set to true. Fix: Set demoMode: false and provide your API key(s).


Built by John Rippy | Actor Arsenal