Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tdakkota/tgauth
Simple CLI tool for creating gotd sessions.
https://github.com/tdakkota/tgauth
Last synced: 12 days ago
JSON representation
Simple CLI tool for creating gotd sessions.
- Host: GitHub
- URL: https://github.com/tdakkota/tgauth
- Owner: tdakkota
- License: mit
- Created: 2021-11-11T14:12:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T13:59:30.000Z (over 1 year ago)
- Last Synced: 2024-10-18T21:17:02.990Z (20 days ago)
- Language: Go
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tgauth
[![build-img]][build-url]
[![pkg-img]][pkg-url]
[![reportcard-img]][reportcard-url]
[![coverage-img]][coverage-url]
[![version-img]][version-url]Simple CLI tool for creating gotd sessions.
## Install
```
go install github.com/tdakkota/tgauth@latest
```## Examples
### Create user session interactively
```shell
$ tgauth user
? Your phone number 79000427572
? Activation code [? for help] ?? The code sent by Telegram SMS
? Activation code
```### Read Telegram Desktop session
```shell
$ tgauth -tdata "Telegram Desktop/tdata"
```### Read Telegram Desktop session with passcode
```shell
$ tgauth -passcode 12345 -tdata "Telegram Desktop/tdata"
```### Create session using bot token
```shell
$ tgauth bot -token 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew1
```### QR login
```shell
# Will print a QR using ANSI in your terminal.
$ tgauth qr
```[build-img]: https://github.com/tdakkota/tgauth/workflows/Coverage/badge.svg
[build-url]: https://github.com/tdakkota/tgauth/actions
[pkg-img]: https://pkg.go.dev/badge/tdakkota/tgauth
[pkg-url]: https://pkg.go.dev/github.com/tdakkota/tgauth
[reportcard-img]: https://goreportcard.com/badge/tdakkota/tgauth
[reportcard-url]: https://goreportcard.com/report/tdakkota/tgauth
[coverage-img]: https://codecov.io/gh/tdakkota/tgauth/branch/main/graph/badge.svg
[coverage-url]: https://codecov.io/gh/tdakkota/tgauth
[version-img]: https://img.shields.io/github/v/release/tdakkota/tgauth
[version-url]: https://github.com/tdakkota/tgauth/releases