def __init__(self, vk, server, key, ts, wait=25): assert validators.positive(ts) assert validators.positive(wait) super(BotsLongPoll, self).__init__(vk) self.server = server self.key = key self.ts = ts self.wait = wait
def __init__(self, vk, id, author_id, owner_id, post_id, post_author_id): assert validators.positive(id) assert validators.not_zero(author_id) assert validators.not_zero(owner_id) assert validators.positive(post_id) assert validators.not_zero(post_author_id) super(Comment, self).__init__(vk) self._id = id self._author_id = author_id self._owner_id = owner_id self._post_id = post_id self._post_author_id = post_author_id
def __init__(self, vk, user_id, join_type): assert validators.positive(user_id) super(GroupJoin, self).__init__(vk) self._user_id = user_id self.join_type = join_type
def __init__(self, vk, user_id, himself): assert validators.positive(user_id) super(GroupLeave, self).__init__(vk) self._user_id = user_id self.himself = himself
def __init__(self, vk, id, owner_id): assert validators.positive(id) assert validators.not_zero(owner_id) super(Photo, self).__init__(vk) self._id = id self._owner_id = owner_id
def __init__(self, vk, id): assert validators.positive(id) super(User, self).__init__(vk) self._id = id