mirror of
https://github.com/FerraSoft/bottohelp.git
synced 2026-08-06 21:55:03 +00:00
Fixed schedule_post command argument parsing to properly handle context.args
This commit is contained in:
@@ -953,9 +953,14 @@ ID: {user_info['ID']}
|
|||||||
await update.message.reply_text(SCHEDULER_MESSAGES['usage_schedule'])
|
await update.message.reply_text(SCHEDULER_MESSAGES['usage_schedule'])
|
||||||
return
|
return
|
||||||
|
|
||||||
# Парсинг времени и текста
|
# Парсинг времени и текста - исправляем обработку аргументов
|
||||||
time_str = context.args[0]
|
args = context.args if hasattr(context, 'args') else []
|
||||||
text = ' '.join(context.args[1:])
|
if not args:
|
||||||
|
await update.message.reply_text(SCHEDULER_MESSAGES['usage_schedule'])
|
||||||
|
return
|
||||||
|
|
||||||
|
time_str = args[0]
|
||||||
|
text = ' '.join(args[1:])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
schedule_time = self.parse_schedule_time(time_str)
|
schedule_time = self.parse_schedule_time(time_str)
|
||||||
|
|||||||
Reference in New Issue
Block a user