Получилось всё починить вот так:
def write_messages(sender, message):
authorize.method('messages.send', {'chat_id': sender, 'message': message, 'random_id': get_random_id(), 'attachment': ','.join(attachments)})
def write_messages_us(id, message):
authorize.method('messages.send', {'peer_id': id, 'message': message, 'random_id': get_random_id(), 'attachment': ','.join(attachments)})
elif re.findall('!Рассылка', reseived_message):
if event.object.message['from_id'] in admins:
for id in users:
try:
write_messages_us(id, (re.sub(r'!Рассылка', " ", reseived_message)))
except Exception as ex:
print("Ошибка")
else:
write_messages(sender, "У вас нет прав")