Отправка сообщения ИДАМ, которые в массиве python

Здраствуйте, хочу что-бы сообщение отправлялось всем идам, которые в массиве helpers. Вот мой код

import telebot
import confgi
bot = telebot.TeleBot(confgi.TOKEN)


@bot.message_handler(commands=['start'])
def record_id(message):
    helpers = ['964692370','792593084']
    bot.send_message(str(helpers),'Hi brother!')
    needfile = open('needf.py', 'a')
    needfile.write('\n' + (message.chat.id))



bot.polling()

Ответы (1 шт):

Автор решения: Mikhail Sharaborin
import telebot
import confgi
bot = telebot.TeleBot(confgi.TOKEN)


@bot.message_handler(commands=['start'])
    def record_id(message):
        helpers = ['964692370','792593084']
        for _ in helpers:
            bot.send_message(message.chat.id, f'Hi brother! {_}')


bot.polling()
→ Ссылка