removed bug (and added too)
This commit is contained in:
parent
03effcb540
commit
6fd4285b3b
8
main.py
8
main.py
@ -20,8 +20,14 @@ def get_format(bot, update):
|
|||||||
except BadLink:
|
except BadLink:
|
||||||
update.message.reply_text("Bad link")
|
update.message.reply_text("Bad link")
|
||||||
else:
|
else:
|
||||||
|
for i, v in enumerate(VIDEOS):
|
||||||
|
if v.chat_id == video.chat_id:
|
||||||
|
VIDEOS[i] = video # remove old video not downloaded...
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
VIDEOS.append(video)
|
||||||
|
|
||||||
reply_markup = InlineKeyboardMarkup(video.keyboard)
|
reply_markup = InlineKeyboardMarkup(video.keyboard)
|
||||||
VIDEOS.append(video)
|
|
||||||
update.message.reply_text('Choose format:', reply_markup=reply_markup)
|
update.message.reply_text('Choose format:', reply_markup=reply_markup)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user