R
R
Roma2021-06-13 21:47:28
Python
Roma, 2021-06-13 21:47:28

Error: SyntaxError: positional argument follows keyword argument how to fix?

Gives an error message:

await message.bot.message(chat_id=config.GROUP_ID, message.message_id)
                                                                         ^
SyntaxError: positional argument follows keyword argument

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
o5a, 2021-06-14
@POMA0197263

After named (chat_id= ) arguments, positional arguments (without specifying the argument name) can no longer be used. Those. or pass everything without a name, or explicitly indicate the name of the second argument.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question