randydev commited on
Commit
a030508
·
1 Parent(s): 390a7ef

fix update

Browse files
Files changed (1) hide show
  1. akn/AllDownloaderBot/langues.py +16 -20
akn/AllDownloaderBot/langues.py CHANGED
@@ -3,24 +3,20 @@ from pyrogram.types import *
3
 
4
  @Client.on_message(filters.command("setlang"))
5
  async def arzlanguage_menu(client, message):
6
- buttons_lang = []
7
-
8
- buttons_lang.append(
9
- InlineKeyboardButton("🇺🇸 English", callback_data="arzlang_en"),
10
- InlineKeyboardButton("🇮🇩 Indonesia", callback_data="arzlang_id")
11
- )
12
- buttons_lang.append(
13
- InlineKeyboardButton("🇪🇸 Español", callback_data="arzlang_es")
14
- )
15
- buttons_lang.append(
16
- InlineKeyboardButton("🇫🇷 Français", callback_data="arzlang_fr")
17
- )
18
- buttons_lang.append(
19
- InlineKeyboardButton("❌ Close", callback_data="cclose")
20
- )
21
  await message.reply(
22
- "Select your language:",
23
- reply_markup=InlineKeyboardMarkup(
24
- [buttons_lang]
25
- )
26
- )
 
3
 
4
  @Client.on_message(filters.command("setlang"))
5
  async def arzlanguage_menu(client, message):
6
+ keyboard = [
7
+ [
8
+ InlineKeyboardButton("🇺🇸 English", callback_data="arzlang_en"),
9
+ InlineKeyboardButton("🇮🇩 Indonesia", callback_data="arzlang_id"),
10
+ ],
11
+ [
12
+ InlineKeyboardButton("🇪🇸 Español", callback_data="arzlang_es"),
13
+ InlineKeyboardButton("🇫🇷 Français", callback_data="arzlang_fr"),
14
+ ],
15
+ [
16
+ InlineKeyboardButton(" Close", callback_data="cclose"),
17
+ ]
18
+ ]
 
 
19
  await message.reply(
20
+ "🌐 Select your language:",
21
+ reply_markup=InlineKeyboardMarkup(keyboard)
22
+ )