mirror of
https://github.com/Balshgit/different
synced 2025-09-11 02:50:41 +03:00
add sqlalchemy.py
This commit is contained in:
parent
95f1109207
commit
176b342065
@ -175,3 +175,12 @@ def db_insert_announce(author, bot_announce):
|
|||||||
created=get_now(3)
|
created=get_now(3)
|
||||||
)
|
)
|
||||||
conn.execute(insert_statement)
|
conn.execute(insert_statement)
|
||||||
|
|
||||||
|
|
||||||
|
# usage:
|
||||||
|
|
||||||
|
# db_insert_or_update(chat_id='417070387', nickname='Balsh', name='Dmitry', telephone='23432432')
|
||||||
|
# print(db_get_contact_number('417070387'))
|
||||||
|
# db_insert_reply_message(chat_id='1660356916', reply_message='asdasd')
|
||||||
|
# db_update_location(chat_id='1660356916', location='lsdkjfldskj')
|
||||||
|
# print(db_get_id('417070387'))
|
Loading…
x
Reference in New Issue
Block a user