Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
/ cli Public archive

The command line utility for Telegram

License

Notifications You must be signed in to change notification settings

gotd/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli

The command line interface for telegram.

$ go install github.com/gotd/cli/cmd/tg@latest

Usage

First, initialize configuration (currently only for bots)

$ tg init --app-id APP_ID --app-hash APP_HASH --token BOT_TOKEN

This will create config in gotd subdirectory of default config directory, for example ~/.config/gotd/gotd.cli.yaml.

Now you can issue commands to control your bot. For example, you can send Hello world to @gotd_test:

$ tg send --peer gotd_test "Hello world"