Exemplo n.º 1
0
def start():
    keyboard = {
        'Пользователи': '/admin/users',
        'Вышли текст': '/manual',
        'Вышли картинку': '/image',
        'Проверка ввода': '/hello'
    }
    return template("Главное меню", keyboard, newmessage=True)
Exemplo n.º 2
0
def usersList():
    keyboard = {
        user['username']: '******'.format(user['id'])
        for user in users.get()
    }
    return template("Список пользователей:",
                    keyboard,
                    back='/start&newmessage=False',
                    keyboard_row_width=1)
Exemplo n.º 3
0
def usersList():
    return template("image",
                    image=r'C:\Users\Alex\Pictures\2018-01-08\IMG_1464.JPG',
                    next='/start')
Exemplo n.º 4
0
def usersList():
    return template("Длинный текст без кнопок", next='/start')
Exemplo n.º 5
0
def hello(poststring):
    poststring = decode(poststring)
    return template("Введен {0}".format(poststring),
                    next='/start',
                    newmessage=True)
Exemplo n.º 6
0
def hello():
    return template("Привет, введите текст:",
                    next='/hello',
                    newmessage=True,
                    post=True)