Telegram Send File Action
  • Rust 93.8%
  • Dockerfile 6.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-02-17 23:11:03 +03:00
.github/workflows build: github image 2026-01-26 00:37:51 +03:00
src Revert "feat: resend messages on error" 2026-02-17 23:11:03 +03:00
.gitignore build: github image 2026-01-26 00:37:51 +03:00
action.yml fix: ghcr repo name 2026-01-29 00:26:06 +03:00
Cargo.lock Revert "feat: resend messages on error" 2026-02-17 23:11:03 +03:00
Cargo.toml Revert "feat: resend messages on error" 2026-02-17 23:11:03 +03:00
Dockerfile fix: binary name 2026-01-29 00:20:03 +03:00
LICENSE Initial commit 2026-01-26 00:35:17 +03:00
README.md readme: update 2026-02-05 22:50:23 +03:00

Telegram Send File Action

This GitHub Action allows you to send files from your GitHub repository to Telegram. Perfect for sharing build artifacts, logs, or any files directly through Telegram messages.

Inputs

token

Required Bot API token.

chat_ids

Required Chat IDs of the recipients.

files

Required The list of file paths to upload, one file per line.

body

Optional The message to send along with the files.

api_url

Optional Custom Bot API URL.

pin

Optional Pin chat message.

delay

Optional Delay for requests to Bot API server, default to 5 seconds.

Outputs

None

Example usage

This example demonstrates how to use the Telegram File Sender action with the required inputs and environment variables.

Create a .github/workflows/tg-send-files.yml (or add to your existing workflow file):

name: Send files to Telegram

on: [push]

jobs:
  send-files-to-telegram:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Send files to Telegram
      uses: ardocrat/telegram-files-action
      with:
        token: ${{ secrets.BOT_TOKEN }}
        chat_ids: |
          -1234567890
          -0987654321
        files: |
          /path/to/file1
          /path/to/file2  
        body: 'Here are your files!'
        pin: true

Make sure the actual values of chat_ids and files inputs. Also, remember to set token in your repository's secrets.

This README provides a basic overview of your GitHub Action, how to use it, and how to configure it with necessary environment variables. Adjust the content according to your actual action's repository, inputs, and needs.