Categorygithub.com/gotd/cli
module
0.2.7
Repository: https://github.com/gotd/cli.git
Documentation: pkg.go.dev

# 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"

# Packages

No description provided by the author