Orbeo DevОткрыть в Orbeo

📣 A bot that publishes to your channel

1. Create a bot (Settings → My bots).
2. Open your channel → header → Administrators → Add a bot → type the bot's handle. A bot can post to a channel only as an admin.
3. Send posts with chat_id = the channel handle:

import requests
TOKEN = "123:..."
requests.post(f"https://orbeo.me/botapi/bot{TOKEN}/sendMessage", json={
    "chat_id": "@mychannel",
    "text": "<b>News of the day</b>\nPost text",
    "parse_mode": "HTML",
    "reply_markup": {"inline_keyboard": [[{"text": "Read", "url": "https://orbeo.me"}]]},
})

Photos: sendPhoto with photo (a file or a URL) and caption.

Put it in cron or a systemd timer and the channel runs itself: exchange rates, weather, reports from your CRM, new products in your shop.

This very channel is posted by our bot @orbidevbot — the same way.

#guide #autoposting

orbeo.me · мессенджер без номера телефона