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

Latest commit

 

History

History
23 lines (16 loc) · 540 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 540 Bytes

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"