A Photo booth Telegram Bot.
This bot will watch for changes in a directory and post new images to telegram channels Telegram channel.
- UNIX-like (Linux, MacOS X, ...) :
./gradlew build - Windows :
gradlew.bat build
results :
| File | Description |
|---|---|
build/PhotoBot-dev.jar |
The latest build of the library, constant name, useful for testing. |
build/libs/PhotoBot-VERSION.jar |
The same file with a versioned name. |
- Create
photobot.properties(see photobot.properties.sample)- token : the bot token given by BotFather.
- ids : a comma separated list of channel ids.
- The bot MUST be admin to post messages on a channel.
- When the bot receive a message, it will post the
channel idon the first message it receives on a new channel.
gradle run
The version number used in the file name and available using PhotoBot.version() is generated by inspecting the git
state (see com.palantir.git-version for details).
Here is an example : 1.5.7-3-g2aabbbf.dirty
- 1.5.7 is the last tag
- -3- we are 3 commits after the tag
- g2aabbbf : git short hash
- .dirty : some changes are not committed
- git commit
- git tag -a MAJOR.MINOR.SUB -m "tag vMAJOR.MINOR.SUB"
- git push origin MAJOR.MINOR.SUB
- compile