randydev's picture
fix update
390a7ef
raw
history blame
815 Bytes
from pyrogram import *
from pyrogram.types import *
@Client.on_message(filters.command("setlang"))
async def arzlanguage_menu(client, message):
buttons_lang = []
buttons_lang.append(
InlineKeyboardButton("🇺🇸 English", callback_data="arzlang_en"),
InlineKeyboardButton("🇮🇩 Indonesia", callback_data="arzlang_id")
)
buttons_lang.append(
InlineKeyboardButton("🇪🇸 Español", callback_data="arzlang_es")
)
buttons_lang.append(
InlineKeyboardButton("🇫🇷 Français", callback_data="arzlang_fr")
)
buttons_lang.append(
InlineKeyboardButton("❌ Close", callback_data="cclose")
)
await message.reply(
"Select your language:",
reply_markup=InlineKeyboardMarkup(
[buttons_lang]
)
)