How to use the vkbottle.types.objects 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 / market.py View on Github external
class GetByIdModel(BaseModel):
    response: GetById = None


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


class GetCategoriesModel(BaseModel):
    response: GetCategories = None


class GetComments(BaseModel):
    count: int = None
    items: typing.List[objects.wall.WallComment] = None
    profiles: typing.List[objects.users.User] = None


class GetCommentsModel(BaseModel):
    response: GetComments = None


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


class GetModel(BaseModel):
    response: Get = None
github timoniq / vkbottle / vkbottle / types / responses / friends.py View on Github external
message: objects.friends.RequestsXtrMessage = None


class GetRequests(BaseModel):
    count: int = None
    items: typing.List[FriendRequest] = None
    count_unread: int = None


class GetRequestsModel(BaseModel):
    response: GetRequests = None


class GetSuggestions(BaseModel):
    count: int = None
    items: typing.List[objects.users.User] = None


class GetSuggestionsModel(BaseModel):
    response: GetSuggestions = None


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


class GetModel(BaseModel):
    response: Get = None
github timoniq / vkbottle / vkbottle / types / responses / newsfeed.py View on Github external
from vkbottle.types import objects


class Search(BaseModel):
    total_count: int = None
    count: int = None
    next_from: str = None
    items: typing.List[objects.wall.Wallpost] = None


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):
github timoniq / vkbottle / vkbottle / types / responses / base.py View on Github external
from ..base import BaseModel
from vkbottle.types import objects

GetUploadServer = objects.base.UploadServer


class GetUploadServerModel(BaseModel):
    response: GetUploadServer = None


Bool = objects.base.BoolInt


class BoolModel(BaseModel):
    response: Bool = None
github timoniq / vkbottle / vkbottle / types / responses / docs.py View on Github external
class GetTypesModel(BaseModel):
    response: GetTypes = None


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


class GetModel(BaseModel):
    response: Get = None


class Save(BaseModel):
    type: objects.docs.DocAttachmentType = None
    audio_message: objects.messages.AudioMessage = None
    doc: objects.docs.Doc = None
    graffiti: objects.messages.Graffiti = None


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

ResolveScreenName = objects.utils.DomainResolved


class ResolveScreenNameModel(BaseModel):
    response: ResolveScreenName = None


CheckLink = objects.utils.LinkChecked


class CheckLinkModel(BaseModel):
    response: CheckLink = None


class GetLastShortenedLinks(BaseModel):
    count: int = None
    items: typing.List[objects.utils.LastShortenedLink] = None
github timoniq / vkbottle / vkbottle / types / responses / notes.py View on Github external
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):
    response: GetComments = None
github timoniq / vkbottle / vkbottle / types / responses / stories.py View on Github external
from ..base import BaseModel
from vkbottle.types import objects


class Upload(BaseModel):
    story: objects.stories.Story = None


class UploadModel(BaseModel):
    response: Upload = None


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


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):
github timoniq / vkbottle / vkbottle / types / responses / utils.py View on Github external
class ResolveScreenNameModel(BaseModel):
    response: ResolveScreenName = None


CheckLink = objects.utils.LinkChecked


class CheckLinkModel(BaseModel):
    response: CheckLink = None


class GetLastShortenedLinks(BaseModel):
    count: int = None
    items: typing.List[objects.utils.LastShortenedLink] = None


class GetLastShortenedLinksModel(BaseModel):
    response: GetLastShortenedLinks = None


GetLinkStats = objects.utils.LinkStats


class GetLinkStatsModel(BaseModel):
    response: GetLinkStats = None


GetServerTime = typing.Dict
github timoniq / vkbottle / vkbottle / types / responses / orders.py View on Github external
import typing
from ..base import BaseModel
from vkbottle.types import objects

UpdateSubscription = objects.base.BoolInt


class UpdateSubscriptionModel(BaseModel):
    response: UpdateSubscription = None


CancelSubscription = objects.base.BoolInt


class CancelSubscriptionModel(BaseModel):
    response: CancelSubscription = None


ChangeState = typing.Dict