Skip to content

Command line application for sending a single message to a Telegram channel using a bot API and then momentarily shutting itself down.

Notifications You must be signed in to change notification settings

s3rious/teleposta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teleposta

Teleposta is a command line application for sending a single message to a Telegram channel using a bot API and then momentarily shutting itself down.

Usage

teleposta --token=YOUR_TELEGRAM_BOT_TOKEN --channel=YOUR_CHANNEL_ID --message="Your message" [--template="Your template"] [--verbose]

Arguments

  • --token: Telegram bot token (required).
  • --channel: Telegram channel ID (required).
  • --message: Message content to post (required).
  • --template: Template for formatting the message (optional).
  • --verbose: Enable verbose logging (optional).

Running the Tests

To run the tests, use the following command:

cargo test

Running the Application

In debug mode

Use the following command:

cargo run -- --token=YOUR_TELEGRAM_BOT_TOKEN --channel=YOUR_CHANNEL_ID --message="Your message" [--template="Your template"] [--verbose]

About

Command line application for sending a single message to a Telegram channel using a bot API and then momentarily shutting itself down.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages