mirror of
https://github.com/Xtao-Labs/misskey2telegram.git
synced 2024-11-26 07:05:41 +00:00
fix: revoke single message
This commit is contained in:
parent
5d1d534d19
commit
158346c395
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user