S
S
skweartman2021-08-10 19:38:09
Python
skweartman, 2021-08-10 19:38:09

How to select desired aiogram python command arguments?

In general, I write a bot on a telegram.
I want to receive the command arguments, not the text itself.
Example:
/givedonate @durov 1000

user = @durov
money = 1000
I know it's possible with get_args, but something doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-08-10
@skweartman

What didn't work out?
upd
user, money = message.get_args().split()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question