Telegram bot to play Hanabi with your friends.
Due to telepot dropping support, this project doesn't works for python >= 3.12
- Get an API TOKEN from
@BotFather - Save to the
.envfile:
cp .env-sample .env
nano .env # set the API TOKENAnd run the server with uv
uv run play-telegramHow to play a Telegram game:
- Add the bot to a telegram group.
- All players should start a private chat with the bot. Send
/link_for_newbiesto help them do it. - Send
/new_gamein a group chat to create a new game. - Users can now join the game with the
Joinbutton displayed. - When everyone joined, send
/deal_cardsto start playing!
Alternatively:
- Send
/test <number-of-players>in a private chat.
How to play a local game. Let's say players are Alice, Bob and Casey.
- Run
uv run play-repl Alice Bob Casey - On each turn, type one of those actions:
play <index of card to play>discard <index of card to play>hint <player name to hint> <color or value>
Interested in contributing? See CONTRIBUTING.md for development setup and guideline.
