Skip to main content

Send clipboard content to Telegram instantly.

Project description

๐Ÿ“‹ TGCLIP

Instantly send clipboard content or text from your computer to Telegram.

PyPI Python License Telegram

A lightweight CLI that moves text, code, links, and commands from your desktop straight to Telegram โ€” built for developers, students, and anyone who lives between a laptop and a phone.


Table of Contents


โšก Features

๐Ÿš€Simple one-time setup
๐Ÿ“‹Send clipboard content instantly
โœ๏ธSend custom text directly from the terminal
๐Ÿ‘€Clipboard watch mode
๐Ÿ’ปInteractive shell mode
โš™๏ธEasy configuration management
๐ŸฉบBuilt-in diagnostics with doctor
๐Ÿ”„Reset configuration anytime
๐ŸŽจClean, colorful terminal UI powered by Rich

๐Ÿ“ฆ Installation

pip install tgclip

Verify it worked:

tgclip

โœ… Prerequisites

Requirement Details
Telegram account Any personal account
Telegram Bot Created via @BotFather

๐Ÿš€ Quick Start

tgclip init

You'll be prompted for:

โ‘  Your name
โ‘ก Telegram Bot Token

๐Ÿ’พ Configuration is stored locally on your machine โ€” nothing is uploaded anywhere else.


๐Ÿ›  Commands

tgclip init โ€” Initialize

Configure TGCLIP for first-time use.

tgclip send โ€” Send

Send the current clipboard content to Telegram.

tgclip watch โ€” Watch

Continuously monitor the clipboard and auto-send anything newly copied. Stop with Ctrl + C.

tgclip shell โ€” Shell

Launch an interactive shell for sending multiple messages without restarting the command. Exit with /exit or Ctrl + C.

tgclip config โ€” Configuration

Display your current configuration.

tgclip doctor โ€” Doctor

Runs a full health check:

  • โ˜‘ Configuration
  • โ˜‘ Clipboard access
  • โ˜‘ Internet connectivity
  • โ˜‘ Telegram API access
  • โ˜‘ Bot token
  • โ˜‘ Chat ID
tgclip reset โ€” Reset

Wipes the current configuration so you can start fresh.


๐Ÿ” Workflow

flowchart LR
    A[๐Ÿ“„ Copy text] --> B[tgclip send]
    B --> C[โœˆ๏ธ Telegram]
    C --> D[๐Ÿ“ฑ Open on phone]

๐Ÿ’ก Use Cases

  • ๐Ÿงฉ Send code snippets to your phone
  • ๐Ÿ”— Transfer commands between devices
  • ๐Ÿ“ Save temporary notes
  • ๐ŸŒ Share links instantly
  • ๐Ÿ“ค Move terminal output
  • ๐Ÿ”„ Continue work from mobile

๐Ÿ”’ Privacy

TGCLIP talks directly to the Telegram Bot API โ€” nothing else is in the loop.

  • โœ” Configuration stays on your local machine
  • โœ” No external servers, no telemetry, no middleman

๐Ÿงฐ Troubleshooting

Problem Fix
Something's not working tgclip doctor
Need to start over tgclip reset โ†’ tgclip init
Forgot a command tgclip --help

๐Ÿ“‹ Requirements

  • Python 3.10+
  • A Telegram Bot
  • An internet connection

๐Ÿž Issues

Found a bug or have a feature request? Please open an issue on Github.


๐Ÿ“„ License

Released under the MIT License.


Developed by CyberLeafy

TGCLIP โ€” Fast. Simple. Clipboard to Telegram. ๐Ÿ“‹โžก๏ธ๐Ÿ“ฑ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgclip-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgclip-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file tgclip-0.1.0.tar.gz.

File metadata

  • Download URL: tgclip-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tgclip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c10bf5031e40c006136e87dedc9ae50442f961fa92150997635a3b7eb8ce31f6
MD5 e743f6f71d93a7104780275245a4d8c6
BLAKE2b-256 2c4a480f2e2d318aa9e4bd665bff17d5ba4b663ee3077bfe26c99215e601bc56

See more details on using hashes here.

File details

Details for the file tgclip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tgclip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tgclip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae26c8ec9a3d579165c0b613e14bbace5394b6ec54b93cd6b3a3ba67112cac7
MD5 1c4958b3fbd71d92de9a32a8e46783c4
BLAKE2b-256 1de1a92447666f22af65eb6d6b952e9e7fdbc7e7c7491b057d44b841ebeb17a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page