Answer the question
In order to leave comments, you need to log in
How to add IDs to config.py?
How to add IDs to the config, I add it through and and it's simple, but it takes only the latest id
Answer the question
In order to leave comments, you need to log in
> operator = "4609....71" and "109....307"
Pardon my French, but what the hell is this? You apply logical operators to strings, didn't you suspect something was wrong?
You need a collection of ids, and you need to check if this collection exists!
For example, a set (since I don't think the operator should appear in the list twice, right?):
operators = {"4609....71", "109....307"}
for op in operators: #перебираем элементы множества
await bot.forward_message(op, message.from_user.id, message.message_id)
operators.add("1234....890")
operators.remove("1234....890")
if "1234...890" in operators:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question