handlers = ('spyBotprod_initial', 'spyBotprod_creategame', 'spyBotprod_hostgame',
            'spyBotprod_findgame', 'spyBotprod_findgame_id',
            'spyBotprod_deletegame', 'spyBotprod_gameparticipant')
payloads = {
    "zero":
        {
            "creategame": {
                "next_stage": 1,
                "keyboard": "back_only",
                "msg": "creategame_sendpass"
            },
            "findgame": {
                "next_stage": 4,
                "keyboard": "back_only",
                "msg": "findgame_sendid"
            }
        },
    "first":
        {
            "back": {
                "next_stage": 0,
                "keyboard": "initial",
                "msg": "mainmenu"
            },
        },
    "second":
        {
            "startgame": {
                "next_stage": 0,
                "keyboard": "initial",
                "msg": "startgame"
            },
            "delgame":
            {
                "next_stage": 0,
                "keyboard": "initial",
                "msg": "delgame"
            }
        },
    "third":
        {
            "back": {
                "next_stage": 0,
                "keyboard": "initial",
                "msg": "mainmenu"
            }
        },
    "fourth":
        {
            "back": {
                "next_stage": 3,
                "keyboard": "back_only",
                "msg": "back4"
            }
        },
    "six":
        {
            "exit_game": {
                "next_stage": 0,
                "keyboard": "initial",
                "msg": "Дасвидания, пока, удачи!"
            }
        }
}


# 0: initial. show main menu
# 1: creategame
# 2: hostgame
# 3: findgame
# 4: findgameid
# 5: deletegame
# 6: gameparticipant
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#