You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aiogram.utils.exceptions.CantParseEntities: Can't parse entities: unsupported start tag "aiogram.types.user.user" at byte offset 1
@dp.chat_member_handler(IsGroup())asyncdefhandle_chat_member_updated(message: types.ChatMemberUpdated):
chat_id=message.chat.iduser_id=message.from_user.idnew_chat_member=message.new_chat_memberold_chat_member=message.old_chat_memberifnew_chat_member:
# User joined or was added to the chatifnew_chat_member.user.id==bot.id:
# Bot was added to the chatprint(f"Bot joined the chat. Chat ID: {chat_id}")
else:
# User joined the chatprint(f"User {new_chat_member.user.username} (ID: {user_id}) joined the chat. Chat ID: {chat_id}")
elifold_chat_member:
# User was removed or left the chatifold_chat_member.user.id==bot.id:
# Bot was removed from the chatprint(f"Bot was removed from the chat. Chat ID: {chat_id}")
else:
# User left the chatprint(f"User {old_chat_member.user.username} (ID: {user_id}) left the chat. Chat ID: {chat_id}")
The text was updated successfully, but these errors were encountered:
Context
aiogram.utils.exceptions.CantParseEntities: Can't parse entities: unsupported start tag "aiogram.types.user.user" at byte offset 1
The text was updated successfully, but these errors were encountered: