Added LabelTooLongError() and changed names

This commit is contained in:
Profitroll
2022-12-22 22:11:36 +01:00
parent 7db8c9ac5c
commit 12da1b2376
4 changed files with 13 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ async def callback_query_sponsor_yes(app, clb):
col_tmp.update_one({"user": {"$eq": holo_user.id}, "type": {"$eq": "sponsorship"}}, {"$set": {"state": "approved", "sent": False}})
await holo_user.set_label(configGet("destination_group"), col_tmp.find_one({"user": {"$eq": holo_user.id}, "type": {"$eq": "sponsorship"}})["sponsorship"]["label"])
await holo_user.label_set(configGet("destination_group"), col_tmp.find_one({"user": {"$eq": holo_user.id}, "type": {"$eq": "sponsorship"}})["sponsorship"]["label"])
edited_markup = [[InlineKeyboardButton(text=str(locale("accepted", "button")), callback_data="nothing")]]