Note
This code was written many years ago for fun and can be not very good optimised (or written).
However, it is still can serve as PoC
Inline "Russion Roulette" game for a Telegram bot. Users can play directly from any chat via inline mode.
-
Install dependencies:
pip install pyTelegramBotAPI
-
Clone the repository:
git clone https://github.com/tizhproger/inline_roulette_bot.git cd inline_roulette_bot -
Set your bot token in
inline_roulette.py:API_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
-
Run the bot:
python inline_roulette.py
- In any chat, type
@YourBotUsername, choose the "Roulette" - Press the button to test your luck!