mirror of
https://github.com/Xtao-Labs/misskey2telegram.git
synced 2024-11-22 05:53:09 +00:00
fix: revoke single message
This commit is contained in:
parent
5d1d534d19
commit
158346c395
@ -12,8 +12,8 @@ port = 1080
|
||||
|
||||
[basic]
|
||||
ipv6 = False
|
||||
cache_uri = mem://
|
||||
|
||||
[misskey]
|
||||
url = wss://xxx.com/streaming
|
||||
web_domain = misskey2tg.xtaolabs.com
|
||||
admin = 777000
|
||||
|
@ -371,12 +371,12 @@ async def send_update(
|
||||
file_type = file.type
|
||||
url = await fetch_document(file)
|
||||
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"):
|
||||
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"):
|
||||
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:
|
||||
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 _:
|
||||
return await send_group(host, cid, files, note, topic_id, show_second)
|
||||
|
Loading…
Reference in New Issue
Block a user