IndexError: list index out of range В AioGram
@dp.message(Command("update"))
async def cmd_start(message: types.Message):
await message.reply("Минутку")
i1 = 0
i2 = 1
i3 = 2
print(userdata[i1])
print(userdata[i2])
print('Участок: ',userdata[i3])
print(userdata)
while True:
i1 += 3
i2 += 3
i3 += 3
#print(i1, i2, i3)
data1 = userdata[i1]
data2 = userdata[i2]
data3 = 'УЧ: ',userdata[i3]
await bot.promote_chat_member(chat_id="-1002247230310", user_id=data2 is_anonymous: False, can_manage_chat: False, can_delete_messages: False, can_manage_video_chats: False, can_restrict_members: False, can_promote_members: False, can_change_info: False, can_invite_users: False, can_post_stories: False, can_edit_stories: False, can_delete_stories: False, can_post_messages: True)
await bot.set_chat_administrator_custom_title(chat_id='-1002247230310',
user_id=data2,
custom_title=data3)
Userdata Это Список по типу ['TNC', 5746164626, '???']