This object represents an inaccessible message. These are messages that are e.g. deleted. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`message_id` and :attr:`chat` are equal .. versionadded:: 20.8 A
| 230 | |
| 231 | |
| 232 | class InaccessibleMessage(MaybeInaccessibleMessage): |
| 233 | """This object represents an inaccessible message. |
| 234 | |
| 235 | These are messages that are e.g. deleted. |
| 236 | |
| 237 | Objects of this class are comparable in terms of equality. Two objects of this class are |
| 238 | considered equal, if their :attr:`message_id` and :attr:`chat` are equal |
| 239 | |
| 240 | .. versionadded:: 20.8 |
| 241 | |
| 242 | Args: |
| 243 | message_id (:obj:`int`): Unique message identifier. |
| 244 | chat (:class:`telegram.Chat`): Chat the message belongs to. |
| 245 | |
| 246 | Attributes: |
| 247 | message_id (:obj:`int`): Unique message identifier. |
| 248 | date (:class:`constants.ZERO_DATE`): Always :tg-const:`telegram.constants.ZERO_DATE`. |
| 249 | The field can be used to differentiate regular and inaccessible messages. |
| 250 | chat (:class:`telegram.Chat`): Chat the message belongs to. |
| 251 | """ |
| 252 | |
| 253 | __slots__ = () |
| 254 | |
| 255 | def __init__( |
| 256 | self, |
| 257 | chat: Chat, |
| 258 | message_id: int, |
| 259 | *, |
| 260 | api_kwargs: JSONDict | None = None, |
| 261 | ): |
| 262 | super().__init__(chat=chat, message_id=message_id, date=ZERO_DATE, api_kwargs=api_kwargs) |
| 263 | self._freeze() |
| 264 | |
| 265 | |
| 266 | class Message(MaybeInaccessibleMessage): |
no outgoing calls
searching dependent graphs…