mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
fix #19
This commit is contained in:
parent
ac09e42f94
commit
52864ed729
@ -549,9 +549,9 @@ msgstr "Promotion code withdrawn"
|
|||||||
|
|
||||||
#: olgram/commands/promo.py:70
|
#: olgram/commands/promo.py:70
|
||||||
msgid ""
|
msgid ""
|
||||||
"Укажите аргумент: промокод. Например: <pre>/set_promo my-promo-code</pre>"
|
"Укажите аргумент: промокод. Например: <pre>/setpromo my-promo-code</pre>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Specify the argument: promo code. For example: <pre>/set_promo my-promo-"
|
"Specify the argument: promo code. For example: <pre>/setpromo my-promo-"
|
||||||
"code</pre>"
|
"code</pre>"
|
||||||
|
|
||||||
#: olgram/commands/promo.py:78 olgram/commands/promo.py:82
|
#: olgram/commands/promo.py:78 olgram/commands/promo.py:82
|
||||||
|
@ -556,9 +556,9 @@ msgstr "Промокод відкликаний"
|
|||||||
|
|
||||||
#: olgram/commands/promo.py:70
|
#: olgram/commands/promo.py:70
|
||||||
msgid ""
|
msgid ""
|
||||||
"Укажите аргумент: промокод. Например: <pre>/set_promo my-promo-code</pre>"
|
"Укажите аргумент: промокод. Например: <pre>/setpromo my-promo-code</pre>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Зазначте аргумент: промокод. Наприклад: <pre>/set_promo my-promo-code</pre>"
|
"Зазначте аргумент: промокод. Наприклад: <pre>/setpromo my-promo-code</pre>"
|
||||||
|
|
||||||
#: olgram/commands/promo.py:78 olgram/commands/promo.py:82
|
#: olgram/commands/promo.py:78 olgram/commands/promo.py:82
|
||||||
msgid "Промокод не найден"
|
msgid "Промокод не найден"
|
||||||
|
@ -60,14 +60,14 @@ async def del_promo(message: types.Message, state: FSMContext):
|
|||||||
|
|
||||||
|
|
||||||
@dp.message_handler(commands=["setpromo"], state="*")
|
@dp.message_handler(commands=["setpromo"], state="*")
|
||||||
async def set_promo(message: types.Message, state: FSMContext):
|
async def setpromo(message: types.Message, state: FSMContext):
|
||||||
"""
|
"""
|
||||||
Команда /setpromo
|
Команда /setpromo
|
||||||
"""
|
"""
|
||||||
|
|
||||||
arg = message.get_args()
|
arg = message.get_args()
|
||||||
if not arg:
|
if not arg:
|
||||||
return await message.answer(_("Укажите аргумент: промокод. Например: <pre>/set_promo my-promo-code</pre>"),
|
return await message.answer(_("Укажите аргумент: промокод. Например: <pre>/setpromo my-promo-code</pre>"),
|
||||||
parse_mode="HTML")
|
parse_mode="HTML")
|
||||||
|
|
||||||
arg = arg.strip()
|
arg = arg.strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user