def METHOD_NAME(self, bot, time):
    json_dict = {
        "chat": self.chat.to_dict(),
        "from": self.from_user.to_dict(),
        "date": to_timestamp(time),
        "user_chat_id": self.from_user.id,
    }
    chat_join_request = ChatJoinRequest.de_json(json_dict, bot)
    assert chat_join_request.api_kwargs == {}
    assert chat_join_request.chat == self.chat
    assert chat_join_request.from_user == self.from_user
    assert abs(chat_join_request.date - time) < datetime.timedelta(seconds=1)
    assert to_timestamp(chat_join_request.date) == to_timestamp(time)
    assert chat_join_request.user_chat_id == self.from_user.id
    json_dict.update({"bio": self.bio, "invite_link": self.invite_link.to_dict()})
    chat_join_request = ChatJoinRequest.de_json(json_dict, bot)
    assert chat_join_request.api_kwargs == {}
    assert chat_join_request.chat == self.chat
    assert chat_join_request.from_user == self.from_user
    assert abs(chat_join_request.date - time) < datetime.timedelta(seconds=1)
    assert to_timestamp(chat_join_request.date) == to_timestamp(time)
    assert chat_join_request.user_chat_id == self.from_user.id
    assert chat_join_request.bio == self.bio
    assert chat_join_request.invite_link == self.invite_link