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.
teleposta --token=YOUR_TELEGRAM_BOT_TOKEN --channel=YOUR_CHANNEL_ID --message="Your message" [--template="Your template"] [--verbose]
--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).
To run the tests, use the following command:
cargo test
Use the following command:
cargo run -- --token=YOUR_TELEGRAM_BOT_TOKEN --channel=YOUR_CHANNEL_ID --message="Your message" [--template="Your template"] [--verbose]