Этот проект представляет собой простого Telegram-бота, который позволяет пользователям выбирать игры из списка с возможностью перехода на соответствующие сайты.
Бот приветствует пользователя и предоставляет список игр. При выборе игры пользователь может перейти на сайт игры, нажав на соответствующую кнопку.
- aiogram - асинхронная библиотека для работы с Telegram API.
- Python 3.7 или выше.
-
Клонируйте репозиторий:
git clone https://github.com/ultrabyte-coder/Game_Web_tgbot cd Game_Web_tgbot
pip install -U aiogram
Замените 'YOUR_BOT_TOKEN_HERE' в коде на токен вашего бота. Получить токен можно, создав нового бота через BotFather.
- Запуск:
python tgbot_web_game.py
После запуска бот будет доступен в Telegram. Напишите ему любое сообщение, чтобы начать взаимодействие.
- Как это работает:
Обработка сообщений: Когда пользователь отправляет любое сообщение, бот отвечает приветствием и отображает список доступных игр. Кнопки выбора игры: Каждая кнопка соответствует определенной игре и содержит ссылку на ее веб-сайт. Переход на сайт: Нажав на кнопку, пользователь будет перенаправлен на выбранный сайт игры.
- Игры в списке:
- Миллионер
- Косынка
- Маджонг
- Сапёр
- Дурак
- Лицензия:
Данный бот является личной собственностью автора и может быть использован безвозмездно.
- Контакты:
Если у вас есть вопросы или предложения, вы можете связаться со мной по электронной почте: developer_python@list.ru
This project represents a simple Telegram bot that allows users to choose games from a list with the ability to navigate to the respective websites.
The bot greets the user and provides a list of games. When a game is selected, the user can visit the game's website by clicking the corresponding button.
- aiogram - an asynchronous library for working with the Telegram API.
- Python 3.7 or higher.
-
Clone the repository:
git clone https://github.com/ultrabyte-coder/Game_Web_tgbot cd Game_Web_tgbot
pip install -U aiogram
Replace 'YOUR_BOT_TOKEN_HERE' in the code with your bot's token. You can obtain the token by creating a new bot through BotFather.
- Running the Bot:
python tgbot_web_game.py
After starting, the bot will be available on Telegram. Send it any message to start interacting.
- How it Works:
Message Handling: When a user sends any message, the bot responds with a greeting and displays a list of available games. Game Selection Buttons: Each button corresponds to a specific game and contains a link to its website. Navigating to Site: By clicking a button, the user will be redirected to the selected game's website.
- Games in the List:
- Millionaire
- Klondike
- Mahjong
- Minesweeper
- Durak
- License:
This bot is the personal property of the author and can be used free of charge.
- Contact:
If you have any questions or suggestions, you can contact me via email: developer_python@list.ru