bb = len(a)
i = 0
cc = a[i]
conn.commit()
photo = open('D:/projects/BetBot/pay_bot1/data/img' + abcc, 'rb')
for number in range(bb):
cur.execute(f"select user_id from orders")#подключение к бд ждя получени айди для рассылки
a = cur.fetchall()
bb = len(a)
cc = a[i]
a = cc [0]
id1 = cc[0]
print(id1)
i = i+1
bot.send_photo(id1, photo)
bot.send_message(chat_id=id1,text=text,reply_markup=all_keyboard())