remove kyeboard
This commit is contained in:
parent
e67cee0513
commit
1153876c81
|
@ -66,6 +66,7 @@ class TgBot:
|
|||
|
||||
async def admin_action(self, name, queryset):
|
||||
from .updater import tg_bot_updater_instance
|
||||
|
||||
if name == "admin_get_image":
|
||||
item = queryset
|
||||
try:
|
||||
|
@ -136,7 +137,9 @@ class TgBot:
|
|||
"<strong>/my</strong> — продолжить инвентаризацию\n"
|
||||
),
|
||||
# reply_markup=ForceReply(selective=True),
|
||||
reply_parameters=ReplyParameters(message_id=update.effective_message.message_id),
|
||||
reply_parameters=ReplyParameters(
|
||||
message_id=update.effective_message.message_id
|
||||
),
|
||||
)
|
||||
|
||||
async def my(self, update: Update, context: CallbackContext):
|
||||
|
@ -335,7 +338,7 @@ class TgBot:
|
|||
await update.effective_message.edit_text(
|
||||
text,
|
||||
reply_markup=InlineKeyboardMarkup(inline_keyboard=keyboard),
|
||||
parse_mode=ParseMode.HTML
|
||||
parse_mode=ParseMode.HTML,
|
||||
)
|
||||
else:
|
||||
await update.effective_message.reply_html(
|
||||
|
@ -429,10 +432,11 @@ class TgBot:
|
|||
)
|
||||
inv.name = update.message.text
|
||||
await inv.asave()
|
||||
res = await update.effective_message.reply_html(
|
||||
"Ок, сохранено", reply_markup=ReplyKeyboardRemove()
|
||||
await update.effective_message.reply_html(
|
||||
f"Ок, сохранено название {inv.name}",
|
||||
reply_markup=ReplyKeyboardRemove(),
|
||||
)
|
||||
await res.delete()
|
||||
# await res.delete()
|
||||
else:
|
||||
inv = await TgItem.objects.aget(id=context.chat_data["inv"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue