Added messages to sponsor's locale

This commit is contained in:
Profitroll
2022-12-23 01:49:38 +01:00
parent 1eb98750a7
commit af862a3454
3 changed files with 7 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ async def callback_query_sponsor_yes(app, clb):
edited_markup = [[InlineKeyboardButton(text=str(locale("accepted", "button")), callback_data="nothing")]]
await app.edit_message_caption(clb.message.chat.id, clb.message.id, caption=clb.message.caption, reply_markup=InlineKeyboardMarkup(edited_markup))
await clb.answer(text=f"✅ Confirmed {fullclb[2]}", show_alert=False)
await clb.answer(text=locale("sponsor_accepted", "callback").format(fullclb[2]), show_alert=False)
@app.on_callback_query(filters.regex("sponsor_no_[\s\S]*"))
async def callback_query_sponsor_no(app, clb):
@@ -62,4 +62,4 @@ async def callback_query_sponsor_no(app, clb):
edited_markup = [[InlineKeyboardButton(text=str(locale("declined", "button")), callback_data="nothing")]]
await app.edit_message_caption(clb.message.chat.id, clb.message.id, caption=clb.message.caption, reply_markup=InlineKeyboardMarkup(edited_markup))
await clb.answer(text=f"❌ Rejected {fullclb[2]}", show_alert=False)
await clb.answer(text=locale("sponsor_rejected", "callback").format(fullclb[2]), show_alert=False)