Tool

Send text message or reply

The Telegram Bot API Send Text Message tool enables users to effortlessly dispatch messages or replies directly to their Telegram Desktop application. It supports advanced message formatting and customization through various options, ensuring seamless communication via Telegram bots.

telegram_bot_api

Features

  • Send text messages or replies to any Telegram chat using chat IDs or public usernames.
  • Supports multiple text formatting styles including Markdown, MarkdownV2, and HTML.
  • Option to send messages silently without disturbing the recipient.
  • Customizable link preview settings for enhanced message display.
  • Ability to add interactive elements like inline keyboards or custom reply keyboards for engaging user interactions.

Benefits

  • Facilitates automated and efficient communication through Telegram bots.
  • Enhances message visibility with rich formatting and link previews.
  • Improves user engagement using interactive keyboard options.
  • Allows silent notifications to avoid disturbing users when necessary.
  • Simplifies integration by accepting either chat IDs or public chat usernames.

Description

Sends a text message or a reply to your Telegram Desktop application. See the docs for more information

Parameters

7 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.

textstring

Enter or map the message text to send.

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.

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.

link_preview_optionsstring

Link preview generation options for the message. Enter additional interface options that are a JSON-serialized object, e.g. {"is_disabled":false,"url":"https://botpress.org","prefer_small_media":true,"prefer_large_media":false,"show_above_text":false}

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.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .