Exemplo n.º 1
0
from database import Storage

s = Storage()

print('Enter api_id:')
api_id = input()
print('Enter api_hash:')
api_hash = input()

s.register_api(api_id, api_hash)
Exemplo n.º 2
0
def before_first_request():
    #upload database object to current_app
    current_app.database = Storage()
    return
Exemplo n.º 3
0
def before_first_request():
    current_app.database = Storage()
    return