A
A
arynyklas2019-12-04 12:02:44
Python
arynyklas, 2019-12-04 12:02:44

The bot does not see the admin in the group, what should I do?

I have a command to do the mailing:

я: РАЗОСЛАТЬ: 
123
ТЕСТ
123

бот всем пользователям:
123
ТЕСТ
123

But in a group:
я: РАЗОСЛАТЬ: 
123
ТЕСТ
123

бот в группу:
Вы не разработчик

How can I implement this but so that he accepts "admin" commands in the group. (I know how to delt so that he catches commands)
ps:
elif 'РАЗОСЛАТЬ: ' in message.text:
        if message.chat.id == config.owner:
            msg = message.text.replace("РАЗОСЛАТЬ: ","")
            send_message_users(msg)
            print("\n------РАЗОСЛАНО: ------ {}".format(msg))
        else:
            bot.send_message(message.chat.id, 'Вы не разработчик!')

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question