Receber por email
← Voltar para o catálogo

tgcli

CLI do Telegram para ler/pesquisar mensagens, sincronizar arquivos e enviar ou baixar arquivos. Use quando o usuário perguntar sobre chats, mensagens, contatos, grupos ou arquivos do Telegram.

40estrelas
Atualizado há 3 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add kfastov/tgcli

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/tgcli/svg)](https://www.skillteca.com.br/skills/tgcli)

Skills relacionadas

Ver todas de DevOps e Infra →

Alerta por categoria

Receba novas skills de DevOps e Infra toda segunda

1 email curto, só com as skills novas de DevOps e Infra. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

tgcli

Telegram CLI with background sync.

When to Use

Use this skill when the user:

  • Wants to read or search Telegram messages
  • Needs recent updates or an inbox-style view of chats
  • Asks to send a Telegram message or file
  • Wants to download media or files from Telegram
  • Wants to look up channels, groups, or contacts
  • Needs archive/backfill sync for a chat

Install

npm install -g @kfastov/tgcli

Or:

brew install kfastov/tap/tgcli

Authentication

First-time setup needs Telegram API credentials from https://my.telegram.org/apps

tgcli auth

Common Commands

Reading

tgcli channels list --limit 20
tgcli messages list --chat @username --limit 50
tgcli messages search "query" --chat @channel --source archive
tgcli topics list --chat @channel --limit 20

Files & Media

tgcli media download --chat @channel --id 12345
tgcli send file --to @channel --file ./report.pdf --caption "FYI"

Writing

tgcli send text --to @username --message "Hello"

Sync & Service

tgcli sync --follow
tgcli sync jobs add --chat @channel --min-date 2024-01-01T00:00:00Z
tgcli service install
tgcli service start

Contacts & Groups

tgcli contacts search "alex"
tgcli groups list --query "Nha Trang"

Output Formats

All commands support --json for structured output:

tgcli messages list --chat @username --limit 5 --json
tgcli channels list --limit 10 --json

Notes

  • Use --source live|archive|both when listing or searching messages.
  • --json is best for AI/tooling pipelines.
Compartilhar X LinkedIn