How to use the vkbottle.types.objects.base 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 / responses / notifications.py View on Github external
items: typing.List[objects.notifications.Notification] = None
    profiles: typing.List[objects.users.User] = None
    groups: typing.List[objects.groups.Group] = None
    last_viewed: int = None
    photos: typing.List[objects.photos.Photo] = None
    videos: typing.List[objects.video.Video] = None
    apps: typing.List[objects.apps.App] = None
    next_from: str = None
    ttl: int = None


class GetModel(BaseModel):
    response: Get = None


MarkAsViewed = objects.base.BoolInt


class MarkAsViewedModel(BaseModel):
    response: MarkAsViewed = None
github timoniq / vkbottle / vkbottle / types / responses / likes.py View on Github external
import typing
from ..base import BaseModel
from vkbottle.types import objects


class IsLiked(BaseModel):
    liked: objects.base.BoolInt = None
    copied: objects.base.BoolInt = None


class IsLikedModel(BaseModel):
    response: IsLiked = None


class Add(BaseModel):
    likes: int = None


class AddModel(BaseModel):
    response: Add = None


class Delete(BaseModel):
    likes: int = None
github timoniq / vkbottle / vkbottle / types / responses / market.py View on Github external
class Add(BaseModel):
    market_item_id: int = None


class AddModel(BaseModel):
    response: Add = None


CreateComment = typing.Dict


class CreateCommentModel(BaseModel):
    response: CreateComment = None


DeleteComment = objects.base.BoolInt


class DeleteCommentModel(BaseModel):
    response: DeleteComment = None


class GetAlbumById(BaseModel):
    count: int = None
    items: typing.List[objects.market.MarketAlbum] = None


class GetAlbumByIdModel(BaseModel):
    response: GetAlbumById = None


class GetAlbums(BaseModel):
github timoniq / vkbottle / vkbottle / types / responses / account.py View on Github external
import typing
from ..base import BaseModel
from vkbottle.types import objects


class SaveProfileInfo(BaseModel):
    changed: objects.base.BoolInt = None
    name_request: objects.account.NameRequest = None


class SaveProfileInfoModel(BaseModel):
    response: SaveProfileInfo = None


class ChangePassword(BaseModel):
    token: str = None
    secret: str = None


class ChangePasswordModel(BaseModel):
    response: ChangePassword = None
github timoniq / vkbottle / vkbottle / types / responses / likes.py View on Github external
import typing
from ..base import BaseModel
from vkbottle.types import objects


class IsLiked(BaseModel):
    liked: objects.base.BoolInt = None
    copied: objects.base.BoolInt = None


class IsLikedModel(BaseModel):
    response: IsLiked = None


class Add(BaseModel):
    likes: int = None


class AddModel(BaseModel):
    response: Add = None


class Delete(BaseModel):
github timoniq / vkbottle / vkbottle / types / responses / video.py View on Github external
class GetCommentsModel(BaseModel):
    response: GetComments = None


class Get(BaseModel):
    count: int = None
    items: typing.List[objects.video.Video] = None


class GetModel(BaseModel):
    response: Get = None


RestoreComment = objects.base.BoolInt


class RestoreCommentModel(BaseModel):
    response: RestoreComment = None


Save = objects.video.SaveResult


class SaveModel(BaseModel):
    response: Save = None
github timoniq / vkbottle / vkbottle / types / responses / photos.py View on Github external
class GetByIdModel(BaseModel):
    response: GetById = None


class GetComments(BaseModel):
    count: int = None
    real_offset: int = None
    items: typing.List[objects.photos.CommentXtrPid] = None


class GetCommentsModel(BaseModel):
    response: GetComments = None


GetMarketUploadServer = objects.base.UploadServer


class GetMarketUploadServerModel(BaseModel):
    response: GetMarketUploadServer = None


GetMessagesUploadServer = objects.photos.PhotoUpload


class GetMessagesUploadServerModel(BaseModel):
    response: GetMessagesUploadServer = None


class GetNewTags(BaseModel):
    count: int = None
    items: typing.List[objects.photos.PhotoTag] = None
github timoniq / vkbottle / vkbottle / types / responses / wall.py View on Github external
class PostAdsStealthModel(BaseModel):
    response: PostAdsStealth = None


class Post(BaseModel):
    post_id: int = None


class PostModel(BaseModel):
    response: Post = None


class Repost(BaseModel):
    success: objects.base.OkResponse = None
    post_id: int = None
    reposts_count: int = None
    likes_count: int = None


class RepostModel(BaseModel):
    response: Repost = None
github timoniq / vkbottle / vkbottle / types / responses / groups.py View on Github external
class GetTokenPermissionsModel(BaseModel):
    response: GetTokenPermissions = None


class Get(BaseModel):
    count: int = None
    items: typing.List[typing.Union[int, objects.groups.Group]] = None


class GetModel(BaseModel):
    response: Get = None


IsMember = objects.base.BoolInt


class IsMemberModel(BaseModel):
    response: IsMember = None
github timoniq / vkbottle / vkbottle / types / responses / users.py View on Github external
users: objects.users.UsersArray = None
    groups: objects.groups.GroupsArray = None


class GetSubscriptionsModel(BaseModel):
    response: GetSubscriptions = None


Get = typing.List[objects.users.UserXtrCounters]


class GetModel(BaseModel):
    response: Get = None


IsAppUser = objects.base.BoolInt


class IsAppUserModel(BaseModel):
    response: IsAppUser = None