https://github.com/thomasheller/telegram-java-bot-example
https://github.com/thomasheller/telegram-java-bot-example
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasheller/telegram-java-bot-example
- Owner: thomasheller
- Created: 2020-07-16T07:56:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-25T14:44:35.000Z (over 5 years ago)
- Last Synced: 2025-02-13T14:40:05.875Z (11 months ago)
- Language: Java
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegram-java-bot-example
Example Telegram echo bot based on pengrad's java-telegram-bot-api library:
https://github.com/pengrad/java-telegram-bot-api
Note: You need a valid Telegram ot token
(obtained from [@BotFather](https://core.telegram.org/bots#6-botfather))
and your Telegram chat ID(s).
Build and run:
```bash
./gradlew build
export TELEGRAM_API_TOKEN=1234567890:XXXX-XXXX-XXXXXXXXXXXXXXXXXXXXXXXX
export TELEGRAM_CHATIDS=123456789,987654321
java -jar build/libs/telegram-java-bot-example-1.0.0.jar
```