mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +00:00
Try add imdb set
This commit is contained in:
parent
400802d8e1
commit
8ff987bba5
1 changed files with 11 additions and 1 deletions
|
|
@ -64,7 +64,17 @@ async def imdbsetlang(client, query):
|
||||||
buttons.row(
|
buttons.row(
|
||||||
InlineButton("❌ Close", f"close#{query.from_user.id}")
|
InlineButton("❌ Close", f"close#{query.from_user.id}")
|
||||||
)
|
)
|
||||||
await query.message.edit_caption("<i>Please select available language below..</i>")
|
await query.message.edit_caption("<i>Please select available language below..</i>", reply_markup=buttons)
|
||||||
|
|
||||||
|
@app.on_callback_query(filters.regex("^setimdb"))
|
||||||
|
async def imdbsetlang(client, query):
|
||||||
|
i, lang, uid = query.data.split("#")
|
||||||
|
if query.from_user.id != int(uid):
|
||||||
|
return await query.answer("⚠️ Access Denied!", True)
|
||||||
|
if lang == "eng":
|
||||||
|
await query.message.edit_caption("Language interface for IMDB has been changed to English.")
|
||||||
|
else:
|
||||||
|
await query.message.edit_caption("Bahasa tampilan IMDB sudah diubah ke Indonesia.")
|
||||||
|
|
||||||
@app.on_callback_query(filters.regex("^imdcari_id"))
|
@app.on_callback_query(filters.regex("^imdcari_id"))
|
||||||
async def imdbcari_id(client, query):
|
async def imdbcari_id(client, query):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue