Back to Autogpt

Ayrshare Post To Telegram

docs/integrations/block-integrations/ayrshare/post_to_telegram.md

0.6.442.3 KB
Original Source

Ayrshare Post To Telegram

<!-- MANUAL: file_description -->

Blocks for posting messages to Telegram channels using the Ayrshare social media management API.

<!-- END MANUAL -->

Post To Telegram

What it is

Post to Telegram using Ayrshare

How it works

<!-- MANUAL: how_it_works -->

This block uses Ayrshare's API to publish messages to Telegram channels. It supports text messages, images, videos, and animated GIFs, with automatic link preview generation unless media is included.

The block authenticates through Ayrshare and sends content to your connected Telegram channel or bot. User mentions are supported via @handle syntax, and content can be scheduled for future delivery.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
postThe post text (empty string allowed). Use @handle to mention other Telegram users.strNo
media_urlsOptional list of media URLs. For animated GIFs, only one URL is allowed. Telegram will auto-preview links unless image/video is included.List[str]No
is_videoWhether the media is a video. Set to true for animated GIFs that don't end in .gif/.GIF extension.boolNo
schedule_dateUTC datetime for scheduling (YYYY-MM-DDThh:mm:ssZ)str (date-time)No
disable_commentsWhether to disable commentsboolNo
shorten_linksWhether to shorten linksboolNo
unsplashUnsplash image configurationstrNo
requires_approvalWhether to enable approval workflowboolNo
random_postWhether to generate random post textboolNo
random_media_urlWhether to generate random mediaboolNo
notesAdditional notes for the poststrNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
post_resultThe result of the postPostResponse
postThe result of the postPostIds

Possible use case

<!-- MANUAL: use_case -->

Channel Broadcasting: Automatically distribute announcements, updates, or news to Telegram channel subscribers.

Alert Systems: Send automated notifications with media attachments to monitoring or alert channels.

Content Syndication: Cross-post content from other platforms to Telegram communities for broader reach.

<!-- END MANUAL -->