Skip to content

tizhproger/inline_rps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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 Rock-Paper-Scissors

Inline "Rock-Paper-Scissors" game for Telegram bot using inline buttons. Play directly in any chat.

🚀 Installation & Run

  1. Install dependencies:

    pip install pyTelegramBotAPI
  2. Clone the repository:

    git clone https://github.com/tizhproger/inline_rps.git
    cd inline_rps
  3. Set your bot token in inline_rps.py:

    API_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
  4. Run the bot:

    python inline_rps.py

🧠 Usage

  • In any Telegram chat, type @YourBotUsername in message field, select the "Rock, paper, scissors"
  • First player makes a move, second responds
  • Bot displays the result and winner

About

Inline "Rock, Paper, Scissors" game written on pyTelegramBotApi with no additional libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages