big update
This commit is contained in:
1 parent
7d05a3f2c0
commit
f45d593a84
32 files changed
+726
-320
No files matched your search
@@ -2,7 +2,7 @@ from app.core.models import Asset
|
||||
from app.core.models.base import AlchemyBase
|
||||
|
||||
|
||||
async def create_maria_tables(engine):
|
||||
def create_maria_tables(engine):
|
||||
"""Create all tables in the database."""
|
||||
Asset()
|
||||
AlchemyBase.metadata.create_all(engine)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
async def tg_process_template(
|
||||
chat_wrap: 'Wrapped_CBot',
|
||||
text, keyboard=None, message_id=None,
|
||||
photo=None, video=None, document=None, **kwargs
|
||||
photo=None, audio=None, video=None, document=None, **kwargs
|
||||
):
|
||||
if (photo or video or document) and message_id:
|
||||
if (photo or video or audio or document) and message_id:
|
||||
await chat_wrap.delete_message(message_id)
|
||||
message_id = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user