DK
Затем:
from aiogram.dispatcher.filters import CommandStart
@dp.message_handler(CommandStart(deep_link=строка/регекс с текстом ссылки выше))
Size: a a a
DK
from aiogram.dispatcher.filters import CommandStart
@dp.message_handler(CommandStart(deep_link=строка/регекс с текстом ссылки выше))
DK
DK
DK
DK
DK
К2
ЕП
ЕП
DK
DK
ЕП
<Ч
<Ч
ЕП
def get_args(self):
"""
Get arguments
:return:
"""
command = self.get_full_command()
if command:
return command[1]
message.py
) очень наивно, имхо, возвращать return command[1]
<Ч
def get_args(self):
"""
Get arguments
:return:
"""
command = self.get_full_command()
if command:
return command[1]
message.py
) очень наивно, имхо, возвращать return command[1]
def get_full_command(self):
"""
Split command and args
:return: tuple of (command, args)
"""
if self.is_command():
command, *args = self.text.split(maxsplit=1)
args = args[-1] if args else ""
return command, args
ЕП
DK
<Ч
DK