Tool

Send photo

The Telegram Bot API Send Photo tool enables users to send photos directly to their Telegram Desktop chats or channels efficiently and with rich options. Designed for seamless integration, it supports various file inputs and customization features to enhance messaging capabilities.

telegram_bot_api

Features

  • Send photos to any Telegram chat using chat IDs or public usernames.
  • Support for multiple photo input types including file IDs, HTTP URLs, and local file paths.
  • Ability to add captions with customizable formatting options such as Markdown and HTML.
  • Option to send messages silently by disabling notifications for recipients.
  • Support for advanced interface elements like inline keyboards, custom reply keyboards, and reply message referencing.

Benefits

  • Enhances user engagement by delivering rich media content directly to Telegram chats.
  • Simplifies photo sharing automation within Telegram workflows, saving time and effort.
  • Offers flexibility in message formatting to make content more attractive and readable.
  • Improves user experience with silent message delivery options when needed.
  • Enables interactive conversations with support for customizable reply markups and buttons.

Description

Sends a photo to your Telegram Desktop application. See the docs for more information

Parameters

9 parameters

NameTypeDescription
chatIdrequiredstring

Enter the unique identifier for the target chat (e.g. 1035597319) or username of the target public chat (in the format @channelusername or @supergroupusername). For example, if the group's public link is t.me/mygroup, the username is @mygroup.

captionstring

Enter the photo caption.

filenamestring

Enter a filename.

photorequiredstring

File to send. Pass a file_id to send a file that exists on the Telegram servers, pass an HTTP URL for Telegram to get a file from the Internet, or pass the path to the file (e.g., /tmp/myFile.ext) to upload a new one using a file downloaded to /tmp. File must meet Telegram's requirements for MIME type and size.

disable_notificationboolean

Choose if to send the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.

parse_modeenum

Select MarkdownV2-style, HTML-style, or Markdown-style of the text if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.

reply_to_message_idstring

Enter the ID of the original message.

reply_markupstring

Enter additional interface options that are a JSON-serialized object including an inline keyboard, a custom reply keyboard, instructions to remove the reply keyboard or instructions to force a reply from the user, e.g. {"inline_keyboard":[[{"text":"Some button text 2","url":"https://botpress.org"}]]} or {"keyboard":[["Yes","No"],["Maybe"]]}. Note: keyboard cannot be used with channels. See the docs for more information.

contentTypeenum

Select or enter the MIME type of data.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy