mirror of
https://github.com/openmax-server/server.git
synced 2026-05-23 03:51:43 +03:00
Попытался улучшить ситуацию с тг ботом
This commit is contained in:
18
src/common/sql_queries.py
Normal file
18
src/common/sql_queries.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class SQLQueries:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
SELECT_USER_BY_TG_ID = "SELECT * FROM users WHERE telegram_id = %s"
|
||||
|
||||
INSERT_USER = """
|
||||
INSERT INTO users
|
||||
(phone, telegram_id, firstname, lastname, username,
|
||||
profileoptions, options, accountstatus, updatetime, lastseen)
|
||||
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
|
||||
"""
|
||||
|
||||
INSERT_USER_DATA = """
|
||||
INSERT INTO user_data
|
||||
(phone, chats, contacts, folders, user_config, chat_config)
|
||||
VALUES (%s, %s, %s, %s, %s, %s)
|
||||
"""
|
||||
Reference in New Issue
Block a user