fix: revoke single message

This commit is contained in:
xtaodada 2023-07-21 22:09:18 +08:00
parent 5d1d534d19
commit 158346c395
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ port = 1080
[basic] [basic]
ipv6 = False ipv6 = False
cache_uri = mem://
[misskey] [misskey]
url = wss://xxx.com/streaming
web_domain = misskey2tg.xtaolabs.com web_domain = misskey2tg.xtaolabs.com
admin = 777000 admin = 777000

View File

@ -371,12 +371,12 @@ async def send_update(
file_type = file.type file_type = file.type
url = await fetch_document(file) url = await fetch_document(file)
if file_type.startswith("image"): if file_type.startswith("image"):
return await send_photo(host, cid, url, note, topic_id, show_second) return [await send_photo(host, cid, url, note, topic_id, show_second)]
elif file_type.startswith("video"): elif file_type.startswith("video"):
return await send_video(host, cid, url, note, topic_id, show_second) return [await send_video(host, cid, url, note, topic_id, show_second)]
elif file_type.startswith("audio"): elif file_type.startswith("audio"):
return await send_audio(host, cid, url, note, topic_id, show_second) return [await send_audio(host, cid, url, note, topic_id, show_second)]
else: else:
return await send_document(host, cid, url, note, topic_id, show_second) return [await send_document(host, cid, url, note, topic_id, show_second)]
case _: case _:
return await send_group(host, cid, files, note, topic_id, show_second) return await send_group(host, cid, files, note, topic_id, show_second)