fix player ui
This commit is contained in:
parent
58eca166db
commit
b5a9437c05
|
|
@ -77,11 +77,13 @@ class PlayerTemplates:
|
||||||
inline_keyboard_array = []
|
inline_keyboard_array = []
|
||||||
extra_buttons = []
|
extra_buttons = []
|
||||||
else:
|
else:
|
||||||
|
content_hashtags = content_metadata_json.get('description').strip()
|
||||||
|
if content_hashtags:
|
||||||
|
content_hashtags += '\n\n'
|
||||||
|
|
||||||
text = f"""<b>{content_metadata_json.get('name', 'Unnamed')}</b>
|
text = f"""<b>{content_metadata_json.get('name', 'Unnamed')}</b>
|
||||||
|
|
||||||
{content_metadata_json.get('description').strip()}
|
{content_hashtags}<pre><a href="{content_share_link['url']}">🌐 Открыть на MY</a></pre>"""
|
||||||
|
|
||||||
<code><a href="{content_share_link['url']}">🌐 Открыть на MY</a></code>"""
|
|
||||||
|
|
||||||
make_log("TG-Player", f"Send content {content_type} ({content_encoding}) to chat {self._chat_id}. {cd_log}")
|
make_log("TG-Player", f"Send content {content_type} ({content_encoding}) to chat {self._chat_id}. {cd_log}")
|
||||||
for kmsg in self.db_session.query(KnownTelegramMessage).filter_by(
|
for kmsg in self.db_session.query(KnownTelegramMessage).filter_by(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue