fix api request

This commit is contained in:
2024-03-22 21:03:25 +08:00
parent 6a7ab11148
commit b3c9b1ace7
3 changed files with 13 additions and 11 deletions
+4 -2
View File
@@ -9,7 +9,8 @@ from telegram.ext import (
filters,
InlineQueryHandler,
PicklePersistence,
MessageHandler, CommandHandler
MessageHandler,
CommandHandler
)
import common
@@ -32,7 +33,8 @@ async def reply_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> Non
async with TGTweet(context.bot_data['client'], url) as tweet:
media = list(tweet.pm_media_generator)
message_sent = await update.effective_message.reply_media_group(
media, caption=tweet.message_text,
media,
caption=tweet.message_text,
reply_to_message_id=update.message.message_id
)
if 'forward_channel_id' in context.user_data: