def METHOD_NAME(self):
    return (
        self.tgid,
        self.tg_receiver,
        self.peer_type,
        self.mxid,
        self.avatar_url,
        self.encrypted,
        self.first_event_id,
        self.next_batch_id,
        self.base_insertion_id,
        self.sponsored_event_id,
        self.sponsored_event_ts,
        self.sponsored_msg_random_id,
        self.username,
        self.title,
        self.about,
        self.photo_id,
        self.name_set,
        self.avatar_set,
        self.megagroup,
        json.dumps(self.local_config) if self.local_config else None,
    )