Skip to content

Commit e2df80c

Browse files
committed
vertical buttons
1 parent 7f3e2da commit e2df80c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

youtubeModule.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ async def answer_download(query: InlineQuery, link: str):
9292
caption=message_text,
9393
title=message_text,
9494
reply_markup=InlineKeyboardMarkup(
95-
inline_keyboard=[
96-
[
97-
InlineKeyboardButton(
98-
text="Скачать mp3",
99-
callback_data=f"yt_dl:{info['id']}:audio"
100-
)
101-
] + [
102-
InlineKeyboardButton(
103-
text=f"Скачать mp4 {resolution}p",
104-
callback_data=f"yt_dl:{info['id']}:{resolution}"
105-
) for resolution in info["resolutions"]
106-
]
95+
inline_keyboard=
96+
[
97+
[InlineKeyboardButton(
98+
text="Скачать mp3",
99+
callback_data=f"yt_dl:{info['id']}:audio"
100+
)]
101+
] + [
102+
[InlineKeyboardButton(
103+
text=f"Скачать mp4 {resolution}p",
104+
callback_data=f"yt_dl:{info['id']}:{resolution}"
105+
)] for resolution in info["resolutions"]
107106
]
107+
108108
)
109109
)
110110
], cache_time=1)

0 commit comments

Comments
 (0)