Please answer these questions before submitting your issue. Thanks!
What version of pyTelegramBotAPI are you using?
GitHub version commit #139d35f
What OS are you using?
Windows
What version of python are you using?
3.12
If MessageEntity type is not text_mention, so "user" field would be None, so calling to_dict() method on it will raise AttributeError: 'NoneType' object has no attribute 'to_dict'
Please answer these questions before submitting your issue. Thanks!
What version of pyTelegramBotAPI are you using? GitHub version commit #139d35f
What OS are you using? Windows
What version of python are you using? 3.12
If MessageEntity type is not text_mention, so "user" field would be None, so calling to_dict() method on it will raise AttributeError: 'NoneType' object has no attribute 'to_dict'