cli

module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT

README

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"

Directories

Path Synopsis
cmd
tg
internal
pretty
Package pretty implements pretty-print facilities.
Package pretty implements pretty-print facilities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL