Skip to content

Commit

Permalink
ci: fix "Send to Telegram"
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYi0526 committed Apr 16, 2024
1 parent 2ea6e55 commit 0752db7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,14 @@ jobs:
list_captions = ("", "", "", """Test version, [${{ github.event.head_commit.message }}](${{ github.event.head_commit.url }})""")
for file, caption, message_id in zip(file_paths, list_captions, range(46, 50)):
media = telebot.types.InputMediaDocument(open(file, "rb"), caption=caption, parse_mode='Markdown')
tb.edit_message_media(chat_id=-1001825572660, media=media, message_id=message_id)
tb.copy_messages(chat_id='''${{ secrets.HELPER_BOT_TARGET }}''', message_ids=list(range(46, 50)), from_chat_id=-1001825572660)
for _ in range(3):
try:
tb.edit_message_media(chat_id='''${{ secrets.METADATA_CHANNEL_ID }}''', media=media, message_id=message_id)
except Exception as e:
print(e)
else:
break
tb.copy_messages(chat_id='''${{ secrets.HELPER_BOT_TARGET }}''', message_ids=list(range(46, 50)), from_chat_id='''${{ secrets.METADATA_CHANNEL_ID }}''')
EOL
python Send_to_Telegram.py
Expand Down

0 comments on commit 0752db7

Please sign in to comment.