This commit is contained in:
user 2024-04-05 14:32:46 +03:00
parent eff4d99dbe
commit 80cfd7bf38
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ async def t_callback_owned_content(query: types.CallbackQuery, memory=None, user
async def t_callback_node_content(query: types.CallbackQuery, memory=None, user=None, db_session=None, chat_wrap=None, **extra):
content_hash = query.data.split('_')[1]
content_oid = int(query.data.split('_')[1])
return await chat_wrap.send_content(
db_session.query(StoredContent).filter_by(
hash=base58.b58encode(bytes.fromhex(content_hash)).decode()
id=content_oid
).first(),
message_id=query.message.message_id
)