File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/telegram/payloads Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def escape_markdown(text: str) -> str:
11
11
def make_clickable_forwarded_text (original_channel : str , text : str ) -> str :
12
12
escaped_text = escape_markdown (text )
13
13
escaped_channel = escape_markdown (original_channel )
14
- return f"[🔁 Weitergeleitet von @ { escaped_channel } ](https://t.me/{ original_channel } )\n \n { escaped_text } "
14
+ return f"* [🔁 Weitergeleitet von { escaped_channel } ](https://t.me/{ original_channel } )*: \n \n { escaped_text } "
15
15
16
16
17
17
def process_photo_payload (post ):
@@ -46,7 +46,7 @@ def process_text_payload(post):
46
46
47
47
48
48
def process_forwarded_payload (post ):
49
- original_channel = post ["chat" ].get ("username " , "Quelle" )
49
+ original_channel = post ["chat" ].get ("title " , "Quelle" )
50
50
text = post .get ("text" , "" )
51
51
return {
52
52
"chat_id" : TARGET_CHAT_ID ,
You can’t perform that action at this time.
0 commit comments