tgauth

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tgauth

pkg-img coverage-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
⌂ 换网址