tgsend

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 9 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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