An open API service indexing awesome lists of open source software.

https://github.com/layerex/tgclient-application-template

Template for building go applications with tgclient library.
https://github.com/layerex/tgclient-application-template

Last synced: 25 days ago
JSON representation

Template for building go applications with tgclient library.

Awesome Lists containing this project

README

          

# tgclient-application-template

Template for building go applications with [tgclient](https://github.com/3bl3gamer/tgclient) library.

## Template customization

```sh
sed * .gitignore -i -e 's/tgclient-application-template//g' -e 's/Layerex//g'
```

Don't forget to update libraries before proceeding to development:

```sh
go get -u && go mod tidy
```

# Installation

```sh
sudo install tgclient-application-template /usr/local/bin
```

## Usage

```text
usage: tgclient-application-template [-h] [--dont-save-session] [--app-id APP_ID] [--app-hash APP_HASH]

options:
-h, --help Show this help message and exit
--dont-save-session Don't save session file (and don't use already saved one)
--app-id APP_ID Test credentials are used by default
--app-hash APP_HASH Test credentials are used by default

Session file is saved to /home/user/.local/share/tgclient-application-template/tg.session

```