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 GitHub

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.

website: tgclip


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

Using uv (Recommended)

uv tool install tgclip 

Using pip

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.


๐Ÿ’ก 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.1.tar.gz (10.6 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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgclip-0.1.1.tar.gz
  • Upload date:
  • Size: 10.6 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.1.tar.gz
Algorithm Hash digest
SHA256 2f979ff25bef07c85e5117272464f2c6bf09ff16b02b18b6b343ab989bb092f6
MD5 40f84ad3badf715e7c9896ee0e77fba2
BLAKE2b-256 02e3a5fe47e7f2c13692ffa3927135e7782cdb0b426ad56193aad33abcdffea9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgclip-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94463932cdc10d1ea21386ef0d1abb67d9515bbb1c229c959e85687536740b53
MD5 3c9290a1262a0820e1da8c05afce5e06
BLAKE2b-256 cc10e440e29c8aca43116f4954296fa2a3f77ec66d107a12a681ac4e259bab7a

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