Pinyin Bot is a Go-based application designed to provide text-to-Pinyin and Pinyin-to-Pallady conversion.
- Pinyin Conversion: Convert text with numbers into the Pinyin format.
- Pallady Conversion: Convert Pinyin text into the Cyrillic Pallady format.
Clone the repository and install dependencies:
git clone https://github.com/yourusername/pinyin_bot.git
cd pinyin_bot
go mod tidy
The application can be configured using the following parameters:
--api-key
: your telegram bot API key--init-offset
: initial telegram message offset--update-interval
: update interval in seconds, default 60
The application can be configured using the following environment variables:
API_KEY
: your telegram bot API keyINIT_OFFSET
: initial telegram message offsetUPDATE_INTERVAL
: update interval in seconds, default 60
To start the application, run:
go run cmd/main.go
To build the application, run:
go build -o pinyin_bot cmd/main.go
Contributions are welcome. Please open an issue or pull request.