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.
- Host: GitHub
- URL: https://github.com/layerex/tgclient-application-template
- Owner: Layerex
- License: unlicense
- Created: 2025-03-15T19:29:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-16T05:29:57.000Z (over 1 year ago)
- Last Synced: 2025-06-14T23:04:09.745Z (about 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```