TypeError: 'ChatMemberLeft' object is not subscriptable
@router.callback_query(Text(text=['subscription_check_but_pressed']))
async def check_subs(callback: CallbackQuery, bot: Bot):
user_channel_status = await bot.get_chat_member(chat_id=-1001969217987, user_id=callback.from_user.id)
if user_channel_status['status'] != 'left':
await callback.answer('Спасибо за подписку')
else:
await callback.answer('Сначала подпишись на канал')
@router.callback_query(Text(text=['subscription_check_but_pressed']))
async def check_subs(callback: CallbackQuery, bot: Bot):
user_channel_status = await bot.get_chat_member(chat_id='@eqwe12eqw1qw', user_id=callback.from_user.id)
if user_channel_status.status != 'left':
await callback.answer('Спасибо за подписку!')
else:
await callback.answer('Для начала подпишись на наш канал')