Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1003 Bytes

tic_tac_toe.md

File metadata and controls

37 lines (25 loc) · 1003 Bytes

Tic Tac Toe

Overview

This app allows you to play tic tac toe (also known as naughts and crosses) against another player on Telegram

Configuration

{
    "apps": {
        "tic_tac_toe": {
            "class": "mini_apps.apps.tic_tac_toe.TicTacToe",
            "bot-token": "(your bot token)",
            "short-name": "tic_tac_toe",
            "url": "https://miniapps.example.com/tic_tac_toe/"
        }
    }
}

Bot Setup

On BotFather, you'll need the following:

The menu button (/mybots > @YourBotUsername > Bot Settings > Menu Button), setting to the URL to where you expose the mini events app (same as url in the settings json).

The app (/newapp), for "web app URL" use the URL as before, tic_tac_toe as short name (or the value you have for short-name).

And enable inline mode (/setinline).

Live Instance

You can access a live instance of this bot at @GlaxTicTacToeBot.