File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -353,8 +353,7 @@ async def _handle_matrix_message(
353
353
mime_type = message .info .mimetype or magic .from_buffer (data , mime = True )
354
354
upload_resp = await sender .client .upload (data , mime_type = mime_type )
355
355
media_id = upload_resp .media_id
356
- filename = message .get ("filename" , None )
357
- if filename and filename != message .body :
356
+ if message .filename and message .filename != message .body :
358
357
text = message .body
359
358
else :
360
359
text = ""
@@ -511,11 +510,11 @@ async def _convert_twitter_message(
511
510
if reply_to_msg :
512
511
text_content .set_reply (reply_to_msg .mxid )
513
512
if media_content and self .config ["bridge.caption_in_message" ]:
514
- media_content [ " filename" ] = media_content .body
513
+ media_content . filename = media_content .body
515
514
media_content .body = text_content .body
516
515
if text_content .formatted_body :
517
- media_content [ " format" ] = str ( text_content .format )
518
- media_content [ " formatted_body" ] = text_content .formatted_body
516
+ media_content . format = text_content .format
517
+ media_content . formatted_body = text_content .formatted_body
519
518
else :
520
519
converted .append (text_content )
521
520
return converted
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ commonmark>=0.8,<0.10
4
4
aiohttp >= 3 ,< 4
5
5
yarl >= 1 ,< 2
6
6
attrs >= 20.1
7
- mautrix >= 0.20.2 ,< 0.21
7
+ mautrix >= 0.20.5 ,< 0.21
8
8
asyncpg >= 0.20 ,< 0.29
Original file line number Diff line number Diff line change 48
48
49
49
install_requires = install_requires ,
50
50
extras_require = extras_require ,
51
- python_requires = "~=3.8 " ,
51
+ python_requires = "~=3.9 " ,
52
52
53
53
classifiers = [
54
54
"Development Status :: 4 - Beta" ,
57
57
"Framework :: AsyncIO" ,
58
58
"Programming Language :: Python" ,
59
59
"Programming Language :: Python :: 3" ,
60
- "Programming Language :: Python :: 3.8" ,
61
60
"Programming Language :: Python :: 3.9" ,
62
61
"Programming Language :: Python :: 3.10" ,
63
62
],
You can’t perform that action at this time.
0 commit comments