Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s3rious/teleposta
Command line application for sending a single message to a Telegram channel using a bot API and then momentarily shutting itself down.
https://github.com/s3rious/teleposta
telegram telegram-bot telegram-bot-api telegram-post telegram-poster
Last synced: 4 days ago
JSON representation
Command line application for sending a single message to a Telegram channel using a bot API and then momentarily shutting itself down.
- Host: GitHub
- URL: https://github.com/s3rious/teleposta
- Owner: s3rious
- Created: 2024-03-02T15:51:42.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-22T16:41:37.000Z (4 months ago)
- Last Synced: 2024-07-22T20:06:12.690Z (4 months ago)
- Topics: telegram, telegram-bot, telegram-bot-api, telegram-post, telegram-poster
- Language: Rust
- Homepage:
- Size: 189 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
```sh
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:
```sh
cargo test
```### Running the Application
#### In debug mode
Use the following command:
```sh
cargo run -- --token=YOUR_TELEGRAM_BOT_TOKEN --channel=YOUR_CHANNEL_ID --message="Your message" [--template="Your template"] [--verbose]
```