def METHOD_NAME(cls, update: object, application: "Application") -> "CustomContext":
    """Override from_update to set _message_id."""
    # Make sure to call super()
    context = super().METHOD_NAME(update, application)
    if context.chat_data and isinstance(update, Update) and update.effective_message:
        # pylint: disable=protected-access
        context._message_id = update.effective_message.message_id
    # Remember to return the object
    return context