We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d41d2a commit 8dcfdc5Copy full SHA for 8dcfdc5
1 file changed
telebot/types.py
@@ -1619,11 +1619,11 @@ def user_shared(self):
1619
return self.users_shared
1620
1621
@property
1622
- def any_text(self):
+ def any_text(self) -> Optional[str]:
1623
return self.caption if (self.caption is not None) else self.text
1624
1625
1626
- def any_entities(self):
+ def any_entities(self) -> Optional[List[MessageEntity]]:
1627
return self.caption_entities if (self.caption_entities is not None) else self.entities
1628
1629
0 commit comments