Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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