fix(telegram): detect remote media types with queries
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6baf7178a8
commit
9214390f9d
2 files changed
+4
-3
No files matched your search
@@ -1920,7 +1920,7 @@ async def test_send_remote_media_url_after_security_validation(monkeypatch) -> N
|
||||
channel="telegram",
|
||||
chat_id="123",
|
||||
content="",
|
||||
media=["https://example.com/cat.jpg"],
|
||||
media=["https://example.com/cat.jpg?width=672"],
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1928,7 +1928,7 @@ async def test_send_remote_media_url_after_security_validation(monkeypatch) -> N
|
||||
{
|
||||
"kind": "photo",
|
||||
"chat_id": 123,
|
||||
"photo": "https://example.com/cat.jpg",
|
||||
"photo": "https://example.com/cat.jpg?width=672",
|
||||
"reply_parameters": None,
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user