tgauth

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 27 Imported by: 0

README

tgauth

build-img pkg-img reportcard-img coverage-img version-img

Simple CLI tool for creating gotd sessions.

Install

go install github.com/tdakkota/tgauth@latest

Examples

Create user session interactively
$ tgauth user
? Your phone number 79000427572
? Activation code [? for help] ?

? The code sent by Telegram SMS
? Activation code
Read Telegram Desktop session
$ tgauth -tdata "Telegram Desktop/tdata"
Read Telegram Desktop session with passcode
$ tgauth -passcode 12345 -tdata "Telegram Desktop/tdata"
Create session using bot token
$ tgauth bot -token 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew1
QR login
# Will print a QR using ANSI in your terminal.
$ tgauth qr

Documentation

Overview

Command tgauth is a simple CLI tool to create Telegram/gotd sessions.

Jump to

Keyboard shortcuts

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