GitHub logo
Telegram Bot logo

Workflow template

Send Telegram alerts for new GitHub pull requests

Send a Telegram notice when a GitHub pull request opens, including drafts. The message contains its number, title, repository, author, branch direction, draft flag and source link.

How it works

From an opened pull request to your Telegram chat

1 Trigger · 1 Action
GitHub1 · Trigger

Pull Request

Receive pull_request webhooks from the selected repository with Actions filtered to opened. Newly opened draft PRs are included.

Telegram Bot2 · Action

Notify the Telegram pull request chat

Send the PR metadata to the selected Chat Id through the FastHook Telegram bot. Use plain-text mode with link previews disabled, including the source-to-target branches and draft flag.

The result

A plain-text PR alert in your chosen conversation

The bot identifies the proposed change and provides the GitHub link without copying code or the full PR description.

Example Telegram PR alert

New GitHub pull request #61: Update the Hamburg contributor guide Repository: example-studio/team-handbook Opened by: alex-example Branches: docs/hamburg-guide -> main Draft: false https://github.com/example-studio/team-handbook/pull/61

Fictional PR. The prepared text is not parsed as Telegram Markdown or HTML, and previews are disabled.

Before activation

Set up your workflow

  1. Choose the GitHub source

    Connect the FastHook GitHub App with repository access, browse to the repository and keep opened selected in Actions. The filter also accepts newly opened drafts.

  2. Select the bot’s destination chat

    Connect the FastHook Telegram bot and choose the Chat Id where it can post. For a channel, allow posting there. Review who can read copied branch names and repository details.

  3. Activate before opening a fictional PR

    Wait for the trigger to connect, then open a fictional PR in the selected repository. Inspect the Telegram message’s branch direction, draft flag and source link.

Details and limitations
  • Draft openings are not deferred. Draft PRs can send a notification with Draft true. This workflow neither waits for ready-for-review nor assigns reviewers. Those later events do not send another message under the opened filter.

  • A one-way PR announcement. Existing PRs are not imported. Edits, new commits, reviews, closures and reopenings do not send or update notifications. PR bodies, code changes, comments and attachments are not mapped.

  • Chat visibility and repeated runs. Chat readers see the copied title, repository, author and branches. GitHub still controls access to a private source PR. Plain-text mode avoids Markdown or HTML parsing; manual reruns can send duplicate messages.

Questions about this template

Will a draft PR notify the chat?

Yes. Newly opened drafts are included, with their draft flag shown. The recipe does not wait for ready-for-review.

Can the notice go to a Telegram channel?

Yes. Choose its Chat Id and allow the connected FastHook Telegram bot to post there. Channel readers will see the mapped PR metadata.

Will Markdown characters in a title change the formatting?

The prepared action uses plain-text mode rather than Markdown or HTML parsing, and disables link previews.

Does this report new commits, approvals or merges?

No. Actions is filtered to opened only. Later commits, reviews, closures and reopenings do not send another notification through this template.

Explore connected apps