How to use the vkbottle.types.base.BaseModel function in vkbottle

To help you get started, we’ve selected a few vkbottle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timoniq / vkbottle / vkbottle / types / objects / video.py View on Github external
from . import base
import typing
from ..base import BaseModel


class SaveResult(BaseModel):
    access_key: str = None
    description: str = None
    owner_id: int = None
    title: str = None
    upload_url: str = None
    video_id: int = None


class Video(BaseModel):
    access_key: str = None
    adding_date: int = None
    can_add: "base.BoolInt" = None
    can_comment: "base.BoolInt" = None
    can_edit: "base.BoolInt" = None
    can_like: "base.BoolInt" = None
    can_repost: "base.BoolInt" = None
github timoniq / vkbottle / vkbottle / types / additional / city.py View on Github external
from ..base import BaseModel


class City(BaseModel):
    id: int = None
    title: str = None
github timoniq / vkbottle / vkbottle / types / responses / database.py View on Github external
class GetMetroStationsByIdModel(BaseModel):
    response: GetMetroStationsById = None


class GetMetroStations(BaseModel):
    count: int = None
    items: typing.List[objects.database.Station] = None


class GetMetroStationsModel(BaseModel):
    response: GetMetroStations = None


class GetRegions(BaseModel):
    count: int = None
    items: typing.List[objects.database.Region] = None


class GetRegionsModel(BaseModel):
    response: GetRegions = None


GetSchoolClasses = typing.List[typing.List]


class GetSchoolClassesModel(BaseModel):
    response: GetSchoolClasses = None


class GetSchools(BaseModel):
github timoniq / vkbottle / vkbottle / types / community.py View on Github external
user_id: int = None
    desc: str = None
    phone: str = None
    email: str = None


class CommunityCounters(BaseModel):
    photos: int = None
    albums: int = None
    audios: int = None
    videos: int = None
    topics: int = None
    docs: int = None


class CommunityCoverImage(BaseModel):
    url: str = None
    width: int = None
    height: int = None


class CommunityCover(BaseModel):
    enabled: int = None
    images: List[CommunityCoverImage] = []


class CommunityLink(BaseModel):
    id: int = None
    url: str = None
    name: str = None
    desc: str = None
    photo_50: str = None
github timoniq / vkbottle / vkbottle / types / responses / stories.py View on Github external
class GetBannedModel(BaseModel):
    response: GetBanned = None


class GetById(BaseModel):
    count: int = None
    items: typing.List[objects.stories.Story] = None


class GetByIdModel(BaseModel):
    response: GetById = None


class GetPhotoUploadServer(BaseModel):
    upload_url: str = None
    user_ids: typing.List[int] = None


class GetPhotoUploadServerModel(BaseModel):
    response: GetPhotoUploadServer = None


class GetReplies(BaseModel):
    count: int = None
    items: typing.List[objects.stories.Replies] = None


class GetRepliesModel(BaseModel):
    response: GetReplies = None
github timoniq / vkbottle / vkbottle / types / objects / groups.py View on Github external
is_member: "base.BoolInt" = None
    name: str = None
    photo_100: str = None
    photo_200: str = None
    photo_50: str = None
    screen_name: str = None
    type: "GroupXtrInvitedByType" = None


class GroupXtrInvitedByType(Enum):
    group = "group"
    page = "page"
    event = "event"


class GroupsArray(BaseModel):
    count: int = None
    items: typing.List = None


class LinksItem(BaseModel):
    desc: str = None
    edit_title: "base.BoolInt" = None
    id: int = None
    name: str = None
    photo_100: str = None
    photo_50: str = None
    url: str = None


class LongPollEvents(BaseModel):
    audio_new: "base.BoolInt" = None
github timoniq / vkbottle / vkbottle / types / responses / messages.py View on Github external
class IsMessagesFromGroupAllowedModel(BaseModel):
    response: IsMessagesFromGroupAllowed = None


class JoinChatByInviteLink(BaseModel):
    chat_id: int = None


class JoinChatByInviteLinkModel(BaseModel):
    response: JoinChatByInviteLink = None


MarkAsImportant = typing.List[int]


class MarkAsImportantModel(BaseModel):
    response: MarkAsImportant = None


Pin = objects.messages.PinnedMessage


class PinModel(BaseModel):
    response: Pin = None


class SearchConversations(BaseModel):
    count: int = None
    items: typing.List[objects.messages.Conversation] = None
    profiles: typing.List[objects.users.User] = None
    groups: typing.List[objects.groups.Group] = None
github timoniq / vkbottle / vkbottle / types / responses / newsfeed.py View on Github external
class SearchModel(BaseModel):
    response: Search = None


class GetBanned(BaseModel):
    groups: typing.List[objects.groups.Group] = None
    members: typing.List[objects.users.User] = None
    profiles: typing.List[objects.users.User] = None


class GetBannedModel(BaseModel):
    response: GetBanned = None


class GetComments(BaseModel):
    items: typing.List[objects.wall.Wallpost] = None
    profiles: typing.List[objects.users.User] = None
    groups: typing.List[objects.groups.Group] = None
    next_from: str = None


class GetCommentsModel(BaseModel):
    response: GetComments = None


class WallpostList(BaseModel):
    id: int = None
    title: str = None


class GetLists(BaseModel):
github timoniq / vkbottle / vkbottle / types / objects / messages.py View on Github external
return self.owner_id == other.owner_id and self.id == other.id


class HistoryAttachment(BaseModel):
    attachment: "HistoryMessageAttachment" = None
    message_id: int = None
    from_id: int = None

    def __hash__(self):
        return hash((self.from_id, self.message_id))

    def __eq__(self, other):
        return self.from_id == other.from_id and self.message_id == other.message_id


class HistoryMessageAttachment(BaseModel):
    audio: "audio.Audio" = None
    audio_message: "AudioMessage" = None
    doc: "docs.Doc" = None
    graffiti: "Graffiti" = None
    link: "link.Link" = None
    market: "link.Link" = None
    photo: "photos.Photo" = None
    share: "link.Link" = None
    type: "HistoryMessageAttachmentType" = None
    video: "video.Video" = None
    wall: "link.Link" = None
    poll: "polls.Poll" = None


class HistoryMessageAttachmentType(Enum):
    photo = "photo"
github timoniq / vkbottle / vkbottle / types / responses / notes.py View on Github external
class GetModel(BaseModel):
    response: Get = None


Add = typing.Dict


class AddModel(BaseModel):
    response: Add = None


CreateComment = typing.Dict


class CreateCommentModel(BaseModel):
    response: CreateComment = None


GetById = objects.notes.Note


class GetByIdModel(BaseModel):
    response: GetById = None


class GetComments(BaseModel):
    count: int = None
    items: typing.List = None


class GetCommentsModel(BaseModel):