send-message

command
v0.0.0-...-b5440df Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Binary send-message logs in as a user with a phone code, persists the session to a file, and sends a text message to a channel or user.

This addresses the three most requested scenarios from https://github.com/gotd/td/issues/166:

  • user login by code with session storage in a file;
  • reconnect using the previously stored session (no code on next run);
  • sending a message to a channel.

On the first run it prompts for phone, code and 2FA password in the terminal and writes the session to --session. On subsequent runs the stored session is reused and no login is required.

Jump to

Keyboard shortcuts

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