This commit is contained in:
2024-12-06 14:20:29 +03:00
commit ae115cfbcb
38 changed files with 1178 additions and 0 deletions

13
msg/UserPostMsg.py Normal file
View File

@@ -0,0 +1,13 @@
from bot.HtmlMsg import HtmlMsg
class UserPostMsg(HtmlMsg):
def get_msg(self, data=None) -> str:
if data is None:
data = {}
content = "{content}".format(content=data['post']['content'])
msg = "{content}".format(content=content)
msg = self.replace_tag_with_content(msg, "secure")
return self.get_stylized_msg(msg)