Platforms
Telegram
Publishing to Telegram channels and groups.
Telegram
Telegram is one of the most feature-rich platforms in OwlStack, supporting text, media, media groups, inline keyboards, locations, contacts, and venues.
Connect
Connect Telegram in the OwlStack dashboard:
- Go to Project Settings > Platforms > Telegram
- Enter your Bot API token (from @BotFather)
- Select the target channel or group
- Click Connect
Getting a Bot Token
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts - Copy the API token
- Add your bot as an admin to your channel/group
Publishing
use OwlStack\Enums\Platform;
$result = $client->publish($post, [Platform::Telegram]);Options
| Option | Type | Description |
|---|---|---|
chat_id | string | Override target chat/channel |
parse_mode | string | HTML or Markdown |
disable_notification | bool | Send silently |
inline_keyboard | array | Inline keyboard buttons |
$result = $client->publish($post, [Platform::Telegram], [
'chat_id' => '@specific-channel',
'parse_mode' => 'HTML',
'disable_notification' => true,
'inline_keyboard' => [
[['text' => 'Visit Site', 'url' => 'https://example.com']],
],
]);Constraints
| Constraint | Value |
|---|---|
| Max text length | 4,096 characters |
| Max media per group | 10 |
| Supported media types | JPEG, PNG, GIF, MP4, OGG |
| Formatter markup | HTML |