/tgsend

Send Telegram messages via CLI

Primary LanguageGoMIT LicenseMIT

tgsend

tgsend is a very basic Telegram client which just sends messages and/or files. It's mostly useful for sending stuff via CLI or in simple scripts. However, keep in mind that scripting with clients is against Telegram TOS and should be limited at very specific situations. More info on this in the library documentation.

Installation

Simply download the latest release or compile from source:

go install -v github.com/sgorblex/tgsend

Usage

Initialize the client with a ID/hash API pair (obtainable here):

tgsend -init

Send a message

tgsend @person "nuntium mirabilem sane detexi, hanc paginae exiguitas non caperet"

Also refer to tgsend -h.

The first time you try to send a message, the client will ask you your Telegram login information. You may delete the session file or the client credentials from $XDG_DATA_HOME/tgsend (e.g. ~/.local/share/tgsend).

Contribute

External contributions are welcome via pull request. If you are willing to contribute, TODO.md is a good place to start.

License

MIT