MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / InaccessibleMessage

Class InaccessibleMessage

src/telegram/_message.py:232–263  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

230
231
232class 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
266class Message(MaybeInaccessibleMessage):

Callers 2

callback_queryFunction · 0.90

Calls

no outgoing calls

Tested by 2

callback_queryFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…