responses

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const InternalErrorCode = 1512

Variables

This section is empty.

Functions

This section is empty.

Types

type Addresses

type Addresses struct {
	Enabled   bool `json:"is_enabled,omitempty"`
	AddressID int  `json:"main_address_id,omitempty"`
}

type Ban

type Ban struct {
	Error *Error `json:"error"`
	Code  int    `json:"response"`
}

type BanInfo

type BanInfo struct {
	EndDate int    `json:"end_date,omitempty"`
	Comment string `json:"comment,omitempty"`
}

type Banned

type Banned struct {
	Error *Error `json:"error"`
	Count int    `json:"count,omitempty"`
	Bans  []int  `json:"items,omitempty"`
	Users []User `json:"profiles,omitempty"`
}

type BannedReply

type BannedReply struct {
	Error    *Error `json:"error"`
	Response Banned `json:"response"`
}

type BannedUser

type BannedUser struct {
	Error   *Error      `json:"error"`
	Type    string      `json:"type,omitempty"`
	Info    InfoBanUser `json:"ban_info,omitempty"`
	Profile User        `json:"profile,omitempty"`
}

type BannedUsers

type BannedUsers struct {
	Error *Error       `json:"error"`
	Count int          `json:"count,omitempty"`
	Bans  []BannedUser `json:"items,omitempty"`
}

type BannedUsersReply

type BannedUsersReply struct {
	Error    *Error      `json:"error"`
	Response BannedUsers `json:"response"`
}

type CanWriteChat

type CanWriteChat struct {
	Allowed bool `json:"allowed,omitempty"`
	Reason  int  `json:"reason,omitempty"`
}

type Chat

type Chat struct {
	Error *Error `json:"error"`
	Chat  struct {
		ID      int    `json:"id,omitempty"`
		Type    string `json:"type,omitempty"`
		LocalID int    `json:"local_id,omitempty"`
	} `json:"peer,omitempty"`
	InRead               int          `json:"in_read,omitempty"`
	OutRead              int          `json:"out_read,omitempty"`
	UnreadCount          int          `json:"unread_count,omitempty"`
	Important            bool         `json:"important,omitempty"`
	Unanswered           bool         `json:"unanswered,omitempty"`
	PushSettings         PushSettings `json:"push_settings,omitempty"`
	CanWrite             CanWriteChat `json:"can_write,omitempty"`
	ChatSettings         ChatSettings `json:"chat_settings,omitempty"`
	SortID               ChatSortID   `json:"sort_id,omitempty"`
	LastMessageID        int          `json:"last_message_id,omitempty"`
	LastChatMessageID    int          `json:"last_conversation_message_id,omitempty"`
	InReadChatMessageID  int          `json:"in_read_cmid,omitempty"`
	OutReadChatMessageID int          `json:"out_read_cmid,omitempty"`
	MarkedUnread         bool         `json:"is_marked_unread,omitempty"`
	CanSendMoney         bool         `json:"can_send_money,omitempty"`
	CanReceiveMoney      bool         `json:"can_receive_money,omitempty"`
}
type ChatLink struct {
	Error *Error `json:"error"`
	Link  string `json:"link,omitempty"`
}

type ChatLinkReply

type ChatLinkReply struct {
	Error    *Error   `json:"error"`
	Response ChatLink ` json:"response,omitempty"`
}

type ChatMember

type ChatMember struct {
	ID        int  `json:"member_id,omitempty"`
	InvitedBy int  `json:"invited_by,omitempty"`
	IsOwner   bool `json:"is_owner,omitempty"`
	IsAdmin   bool `json:"is_admin,omitempty"`
	CanKick   bool `json:"can_kick,omitempty"`
	JoinDate  int  `json:"join_date,omitempty"`
}

type ChatMembers

type ChatMembers struct {
	Error    *Error           `json:"error"`
	Count    int              `json:"count,omitempty"`
	Settings ChatRestrictions `json:"chat_restrictions,omitempty"`
	Members  []ChatMember     `json:"items,omitempty"`
	Users    []User           `json:"profiles,omitempty"`
	Groups   []Group          `json:"groups,omitempty"`
}

type ChatMembersReply

type ChatMembersReply struct {
	Error    *Error      `json:"error"`
	Response ChatMembers `json:"response,omitempty"`
}

type ChatReply

type ChatReply struct {
	Error    *Error ` json:"error"`
	Response Chats  ` json:"response,omitempty"`
}

type ChatRestrictions

type ChatRestrictions struct {
	AdminsPromoteUsers bool `json:"admins_promote_users,omitempty"`
	OnlyAdminsEditInfo bool `json:"only_admins_edit_info,omitempty"`
	OnlyAdminsEditPin  bool `json:"only_admins_edit_pin,omitempty"`
	OnlyAdminsInvite   bool `json:"only_admins_invite,omitempty"`
	OnlyAdminsKick     bool `json:"only_admins_kick,omitempty"`
}

type ChatSettings

type ChatSettings struct {
	MembersCount   int                `json:"members_count,omitempty"`
	Title          string             `json:"title,omitempty"`
	PinnedMessage  PinMessage         `json:"pinned_message,omitempty"`
	State          string             `json:"state,omitempty"`
	Photo          update.PhotoAction `json:"photo,omitempty"`
	ActivesID      []int              `json:"active_ids,omitempty"`
	IsGroupChannel bool               `json:"is_group_channel,omitempty"`
}

type ChatSortID

type ChatSortID struct {
	MajorID int `json:"major_id,omitempty"`
	MinorID int `json:"minor_id,omitempty"`
}

type Chats

type Chats struct {
	Error  *Error  `json:"error"`
	Count  int     `json:"count,omitempty"`
	Chats  []Chat  `json:"items,omitempty"`
	Users  []User  `json:"profiles,omitempty"`
	Groups []Group `json:"groups,omitempty"`
}

type City

type City struct {
	ID    int    `json:"id,omitempty"`
	Title string `json:"title,omitempty"`
}

type Contact

type Contact struct {
	ID             int    `json:"id,omitempty"`
	UserID         int    `json:"user_id,omitempty"`
	Name           string `json:"name,omitempty"`
	Description    string `json:"desc,omitempty"`
	Phone          string `json:"phone,omitempty"`
	EMail          string `json:"email,omitempty"`
	CanWrite       bool   `json:"can_write,omitempty"`
	LastSeenStatus int    `json:"last_seen_status,omitempty"`
	Photo50        int    `json:"photo_50,omitempty"`
	CallsID        int    `json:"calls_id,omitempty"`
}

type Counter

type Counter struct {
	Albums          int `json:"albums,omitempty"`
	Market          int `json:"market,omitempty"`
	Photos          int `json:"photos,omitempty"`
	Topics          int `json:"topics,omitempty"`
	Articles        int `json:"articles,omitempty"`
	Narratives      int `json:"narratives,omitempty"`
	ClassifiedYoula int `json:"classified_youla,omitempty"`
}

type Counters

type Counters struct {
	AppRequests          int              `json:"app_requests,omitempty"`
	Faves                int              `json:"faves,omitempty"`
	DiscoverBadge        int              `json:"menu_discover_badge,omitempty"`
	ClipsBadge           int              `json:"menu_clips_badge,omitempty"`
	SuperAppFriendsBadge int              `json:"menu_superapp_friends_badge,omitempty"`
	NewClipsBadge        int              `json:"menu_new_clips_badge,omitempty"`
	Messages             int              `json:"messages,omitempty"`
	SDK                  int              `json:"sdk,omitempty"`
	Calls                int              `json:"calls,omitempty"`
	MessagesFolders      []MessagesFolder `json:"messages_folders,omitempty"`
}

type CountersReply

type CountersReply struct {
	Error    *Error   `json:"error"`
	Response Counters `json:"response,omitempty"`
}

type Country

type Country struct {
	ID    int    `json:"id,omitempty"`
	Title string `json:"title,omitempty"`
}

type Cover

type Cover struct {
	Enabled int     `json:"enabled,omitempty"`
	Images  []Image `json:"images,omitempty"`
}

type CreateChat

type CreateChat struct {
	Error  *Error `json:"error"`
	ChatID int    `json:"chat_id,omitempty"`
	Users  []int  `json:"peer_ids,omitempty"`
}

type CreateChatReply

type CreateChatReply struct {
	Error    *Error     `json:"error"`
	Response CreateChat ` json:"response"`
}

type Crop

type Crop struct {
	X  any `json:"x,omitempty"`
	Y  any `json:"y,omitempty"`
	X2 any `json:"x2,omitempty"`
	Y2 any `json:"y2,omitempty"`
}

type CropPhoto

type CropPhoto struct {
	Photo update.Photo `json:"photo,omitempty"`
	Crop  Crop         `json:"crop,omitempty"`
	Rect  Crop         `json:"rect,omitempty"`
}

type Currency

type Currency struct {
	ID     int    `json:"id,omitempty"`
	Name   string `json:"name,omitempty"`
	Symbol string `json:"title,omitempty"`
}

type DeleteMessage

type DeleteMessage struct {
	Error         *Error `json:"error"`
	ChatID        int    `json:"peer_id,omitempty"`
	MessageID     int    `json:"message_id,omitempty"`
	ChatMessageID int    `json:"conversation_message_id,omitempty"`
	Response      int    `json:"response,omitempty"`
}

type DeleteMessageError

type DeleteMessageError struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"description,omitempty"`
}

type DeleteMessages

type DeleteMessages struct {
	Error    *Error          `json:"error"`
	Messages []DeleteMessage `json:"response,omitempty"`
}

type Dialogs

type Dialogs struct {
	Error *Error `json:"error"`
}

type EditMessage

type EditMessage struct {
	Error *Error `json:"error"`
	Code  int    `json:"response,omitempty"`
}

type Error

type Error struct {
	Code    int          `json:"error_code,omitempty"`
	Message string       `json:"error_msg,omitempty"`
	Params  []ErrorParam `json:"request_params,omitempty"`
}

func NewInternalError

func NewInternalError(err error) *Error

func (Error) Error

func (e Error) Error() string

type ErrorParam

type ErrorParam struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Execute

type Execute struct {
	Error  *Error `json:"error"`
	Result any    `json:"response,omitempty"`
}

type FriendsLike

type FriendsLike struct {
	Count   int `json:"count,omitempty"`
	Preview any `json:"preview,omitempty"`
}

type Gift

type Gift struct {
	ID      int      `json:"id,omitempty"`
	UserID  int      `json:"from_id,omitempty"`
	Message string   `json:"message,omitempty"`
	Date    int      `json:"date,omitempty"`
	Gift    GiftInfo `json:"gift,omitempty"`
	Privacy int      `json:"privacy,omitempty"`
}

type GiftInfo

type GiftInfo struct {
	ID       int    `json:"id,omitempty"`
	Photo48  string `json:"thumb_48,omitempty"`
	Photo96  string `json:"thumb_96,omitempty"`
	Photo256 string `json:"thumb_256,omitempty"`
}

type Gifts

type Gifts struct {
	Error *Error `json:"error"`
	Count int    `json:"count,omitempty"`
	Gifts []Gift `json:"items,omitempty"`
}

type GiftsReply

type GiftsReply struct {
	Error    *Error `json:"error"`
	Response Gifts  `json:"response,omitempty"`
}

type Group

type Group struct {
	Error            *Error    `json:"error"`
	ID               int       `json:"id,omitempty"`
	Name             string    `json:"name,omitempty"`
	Domain           string    `json:"screen_name,omitempty"`
	Closed           int       `json:"is_closed,omitempty"`
	Deactivated      string    `json:"deactivated,omitempty"`
	IsAdmin          int       `json:"is_admin,omitempty"`
	AdminLevel       int       `json:"admin_level,omitempty"`
	IsMember         int       `json:"is_member,omitempty"`
	IsAdvertiser     int       `json:"is_advertiser,omitempty"`
	InvitedBy        int       `json:"invited_by,omitempty"`
	Type             string    `json:"type,omitempty"`
	Photo50          string    `json:"photo_50,omitempty"`
	Photo100         string    `json:"photo_100,omitempty"`
	Photo200         string    `json:"photo_200,omitempty"`
	Activity         string    `json:"activity,omitempty"`
	Addresses        Addresses `json:"addresses,omitempty"`
	Like             Like      `json:"like,omitempty"`
	AgeLimits        int       `json:"age_limits,omitempty"`
	BanInfo          BanInfo   `json:"ban_info,omitempty"`
	CanCreateTopic   int       `json:"can_create_topic,omitempty"`
	CanMessage       int       `json:"can_message,omitempty"`
	CanPost          int       `json:"can_post,omitempty"`
	CanSuggest       int       `json:"can_suggest,omitempty"`
	CanSeePosts      int       `json:"can_see_all_posts,omitempty"`
	CanUploadDoc     int       `json:"can_upload_doc,omitempty"`
	CanUploadStory   int       `json:"can_upload_story,omitempty"`
	CanUploadVideo   int       `json:"can_upload_video,omitempty"`
	City             City      `json:"city,omitempty"`
	Contacts         []Contact `json:"contacts,omitempty"`
	Counters         Counters  `json:"counters,omitempty"`
	Country          Country   `json:"country,omitempty"`
	Cover            Cover     `json:"cover,omitempty"`
	CropPhoto        CropPhoto `json:"crop_photo,omitempty"`
	Description      string    `json:"description,omitempty"`
	PinnedPost       int       `json:"fixed_post,omitempty"`
	HasPhoto         int       `json:"has_photo,omitempty"`
	IsFavorite       int       `json:"is_favorite,omitempty"`
	IsHiddenFromFeed int       `json:"is_hidden_from_feed,omitempty"`
	MessagesBlocked  int       `json:"is_messages_blocked,omitempty"`
	Links            []Link    `json:"links,omitempty"`
	AlbumID          int       `json:"main_album_id,omitempty"`
	Section          int       `json:"main_section,omitempty"`
	Market           Market    `json:"market,omitempty"`
	MemberStatus     int       `json:"member_status,omitempty"`
	MembersCount     int       `json:"members_count,omitempty"`
	Place            Place     `json:"place,omitempty"`
	PublicDate       string    `json:"public_date_label,omitempty"`
	Site             string    `json:"site,omitempty"`
	StartDate        string    `json:"start_date,omitempty"`
	FinishDate       string    `json:"finish_date,omitempty"`
	Status           string    `json:"status,omitempty"`
	Trending         int       `json:"trending,omitempty"`
	Verified         int       `json:"verified,omitempty"`
	Wall             int       `json:"wall,omitempty"`
	WikiPage         string    `json:"wiki_page,omitempty"`
}

type Groups

type Groups struct {
	Error  *Error  `json:"error"`
	Groups []Group `json:"groups,omitempty"`
}

type GroupsReply

type GroupsReply struct {
	Error    *Error `json:"error"`
	Response Groups `json:"response,omitempty"`
}

type Health

type Health struct {
	Error    *Error         `json:"error"`
	Statuses []HealthStatus `json:"health_statuses,omitempty"`
}

type HealthReply

type HealthReply struct {
	Error    *Error `json:"error"`
	Response Health `json:"response"`
}

type HealthStatus

type HealthStatus struct {
	AverageTime int    `json:"average_response_time,omitempty"`
	Category    string `json:"category,omitempty"`
	Status      string `json:"status,omitempty"`
	Uptime      any    `json:"uptime,omitempty"`
}

type HistoryMessages

type HistoryMessages struct {
	Error    *Error           `json:"error"`
	Count    int              `json:"count,omitempty"`
	Messages []update.Message `json:"items,omitempty"`
	Users    []User           `json:"profiles,omitempty"`
	Chats    []Chat           `json:"conversations,omitempty"`
	Contacts []Contact        `json:"contacts,omitempty"`
}

type HistoryMessagesReply

type HistoryMessagesReply struct {
	Error    *Error          `json:"error"`
	Response HistoryMessages `json:"response"`
}

type Image

type Image struct {
	URL    string `json:"url,omitempty"`
	Width  int    `json:"width,omitempty"`
	Height int    `json:"height,omitempty"`
}

type Info

type Info struct {
	Error     *Error `json:"error"`
	TwoFactor int    `json:"2fa_required,omitempty"`
	Country   string `json:"country,omitempty"`
	Secure    int    `json:"https_required,omitempty"`

	Intro             int               `json:"intro,omitempty"`
	CommunityComments bool              `json:"community_comments,omitempty"`
	LinkRedirects     map[string]string `json:"link_redirects,omitempty"`
	Language          int               `json:"lang,omitempty"`
	NoWallReplies     int               `json:"no_wall_replies,omitempty"`
	OwnerPosts        int               `json:"own_posts_default,omitempty"`

	VKPayEndpoint string   `json:"vk_pay_endpoint_v2,omitempty"`
	Translation   []string `json:"messages_translation_language_pairs,omitempty"`
	ObsceneFilter bool     `json:"obscene_text_filter,omitempty"`
}

type InfoBanUser

type InfoBanUser struct {
	AdminID     int    `json:"admin_id,omitempty"`
	Comment     string `json:"comment,omitempty"`
	ShowComment bool   `json:"comment_visible,omitempty"`
	Date        int    `json:"date,omitempty"`
	EndDate     int    `json:"end_date,omitempty"`
	Reason      int    `json:"reason,omitempty"`
}

type InfoReply

type InfoReply struct {
	Error    *Error `json:"error"`
	Response Info   `json:"response"`
}

type KickUser

type KickUser struct {
	Error *Error `json:"error"`
	Code  int    `json:"response"`
}

type Like

type Like struct {
	Liked   bool        `json:"is_liked,omitempty"`
	Friends FriendsLike `json:"friends,omitempty"`
}
type Link struct {
	ID          int    `json:"id,omitempty"`
	URL         string `json:"url,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"desc,omitempty"`
	Photo50     string `json:"photo_50,omitempty"`
	Photo100    string `json:"photo_100,omitempty"`
}

type LongPollServer

type LongPollServer struct {
	Error   *Error `json:"error"`
	Server  string `json:"server,omitempty"`
	Key     string `json:"key,omitempty"`
	TS      any    `json:"ts,omitempty"`
	PTS     any    `json:"pts,omitempty"`
	Version int    `json:"version,omitempty"`
}

type LongPollServerReply

type LongPollServerReply struct {
	Error    *Error         `json:"error"`
	Response LongPollServer `json:"response"`
}

type Market

type Market struct {
	Type                     string   `json:"type,omitempty"`
	ContactID                int      `json:"contact_id,omitempty"`
	Currency                 Currency `json:"currency,omitempty"`
	Symbol                   string   `json:"currency_text,omitempty"`
	IsShowHeaderItemsLink    int      `json:"is_show_header_items_link,omitempty"`
	Enabled                  int      `json:"enabled,omitempty"`
	PriceMax                 string   `json:"price_max,omitempty"`
	PriceMin                 string   `json:"price_min,omitempty"`
	UnViewedOrdersCount      int      `json:"unviewed_orders_count,omitempty"`
	CommunityManageEnabled   int      `json:"is_community_manage_enabled,omitempty"`
	HasNotInMarketTab        bool     `json:"has_not_in_market_tab,omitempty"`
	HasModerationRejectedTab bool     `json:"has_moderation_rejected_tab,omitempty"`
}

type Messages

type Messages struct {
	Error    *Error           `json:"error"`
	Count    int              `json:"count,omitempty"`
	Messages []update.Message `json:"items,omitempty"`
	Profiles []User           `json:"profiles,omitempty"`
	Groups   []Group          `json:"groups,omitempty"`
}

func (Messages) Decode

func (messages Messages) Decode() (Messages, error)

type MessagesFolder

type MessagesFolder struct {
	ID      int `json:"folder_id,omitempty"`
	Count   int `json:"total_count,omitempty"`
	UnMuted int `json:"unmuted_count,omitempty"`
}

type MessagesReply

type MessagesReply struct {
	Error    *Error   `json:"error"`
	Response Messages `json:"response"`
}

type Offers

type Offers struct {
	Error  *Error `json:"error"`
	Count  int    `json:"count,omitempty"`
	Offers []int  `json:"items,omitempty"`
}

type OffersReply

type OffersReply struct {
	Error    *Error `json:"error"`
	Response Offers `json:"response"`
}

type OnlineStatus

type OnlineStatus struct {
	Error *Error `json:"error"`
	Code  int    `json:"response,omitempty"`
}

type PinMessage

type PinMessage struct {
	Error       *Error              `json:"error"`
	ID          int                 `json:"id,omitempty"`
	Date        int                 `json:"date,omitempty"`
	UserID      int                 `json:"from_id,omitempty"`
	Text        string              `json:"text,omitempty"`
	Attachments []update.Attachment `json:"attachments,omitempty"`
	Geolocation update.Geolocation  `json:"geo,omitempty"`
	Forwards    []string            `json:"fwd_messages,omitempty"`
}

type PinMessageReply

type PinMessageReply struct {
	Error    *Error     `json:"error"`
	Response PinMessage `json:"response"`
}

type Place

type Place struct {
	ID        int    `json:"id,omitempty"`
	Title     string `json:"title,omitempty"`
	Latitude  int    `json:"latitude,omitempty"`
	Longitude int    `json:"longitude,omitempty"`
	Type      string `json:"type,omitempty"`
	Country   int    `json:"country,omitempty"`
	City      int    `json:"city,omitempty"`
	Address   string `json:"address,omitempty"`
}

type PushSettings

type PushSettings struct {
	UntilDisabled   bool `json:"disabled_until,omitempty"`
	ForeverDisabled bool `json:"disabled_forever,omitempty"`
	Sound           bool `json:"sound,omitempty"`
	NoSound         bool `json:"no_sound,omitempty"`
}

type ResolveDomain

type ResolveDomain struct {
	Error    *Error `json:"error"`
	Type     string `json:"type,omitempty"`
	ObjectID int    `json:"object_id,omitempty"`
}

type ResolveDomainReply

type ResolveDomainReply struct {
	Error    *Error        `json:"error"`
	Response ResolveDomain `json:"response"`
}

type SaveMessagesDocument

type SaveMessagesDocument struct {
	Title string
	Tags  string
}

type SaveUploadMessageDocument

type SaveUploadMessageDocument struct {
	URL       string `json:"url,omitempty"`
	Date      int    `json:"date,omitempty"`
	ID        int    `json:"id,omitempty"`
	Title     string `json:"title,omitempty"`
	OwnerID   int    `json:"owner_id,omitempty"`
	Extension string `json:"ext,omitempty"`
	Size      int    `json:"size,omitempty"`
}

type SaveUploadMessagesDocument

type SaveUploadMessagesDocument struct {
	Error    *Error                    `json:"error"`
	Type     string                    `json:"type,omitempty"`
	Document SaveUploadMessageDocument `json:"doc,omitempty"`
}

type SaveUploadMessagesDocumentReply

type SaveUploadMessagesDocumentReply struct {
	Error    *Error                     `json:"error"`
	Response SaveUploadMessagesDocument `json:"response"`
}

type SaveUploadMessagesPhoto

type SaveUploadMessagesPhoto struct {
	Date      int    `json:"date,omitempty"`
	ID        int    `json:"id,omitempty"`
	AlbumID   int    `json:"album_id,omitempty"`
	OwnerID   int    `json:"owner_id,omitempty"`
	AccessKey string `json:"access_key,omitempty"`
}

type SaveUploadMessagesPhotoReply

type SaveUploadMessagesPhotoReply struct {
	Error  *Error                    `json:"error"`
	Photos []SaveUploadMessagesPhoto `json:"response"`
}

type SendEventMessage

type SendEventMessage struct {
	Error *Error `json:"error"`
	Code  int    `json:"response,omitempty"`
}

type SendMessage

type SendMessage struct {
	Error         *Error `json:"error"`
	UserID        int    `json:"user_id,omitempty"`
	ChatID        int    `json:"peer_id,omitempty"`
	MessageID     int    `json:"message_id,omitempty"`
	ChatMessageID int    `json:"conversation_message_id,omitempty"`
}

type SendMessages

type SendMessages struct {
	Error    *Error        `json:"error"`
	Messages []SendMessage `json:"response,omitempty"`
}

type SetGroupLongPoll

type SetGroupLongPoll struct {
	Error *Error `json:"error"`
	Code  int    `json:"response,omitempty"`
}

type SetStatus

type SetStatus struct {
	Error *Error `json:"error"`
	Code  int    `json:"response,omitempty"`
}

type SetStorage

type SetStorage struct {
	Error    *Error `json:"error"`
	Response any    `json:"response,omitempty"`
}

type Status

type Status struct {
	Error *Error `json:"error"`
	Text  string `json:"text,omitempty"`
}

type StatusReply

type StatusReply struct {
	Error    *Error `json:"error"`
	Response Status `json:"response"`
}

type Storage

type Storage struct {
	Error    *Error   `json:"error"`
	Response Storages `json:"response,omitempty"`
}

type StorageKeys

type StorageKeys struct {
	Error    *Error   `json:"error"`
	Response []string `json:"response,omitempty"`
}

type Storages

type Storages []struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type UpdateWidgets

type UpdateWidgets struct {
	Error    *Error `json:"error"`
	Response int    `json:"response,omitempty"`
}

type UploadDocumentFile

type UploadDocumentFile struct {
	File string `json:"file,omitempty"`
}

type UploadMessagesDocumentServer

type UploadMessagesDocumentServer struct {
	Error     *Error `json:"error"`
	UploadURL string `json:"upload_url,omitempty"`
}

type UploadMessagesDocumentServerReply

type UploadMessagesDocumentServerReply struct {
	Error    *Error                       `json:"error"`
	Response UploadMessagesDocumentServer `json:"response,omitempty"`
}

type UploadMessagesPhotoServer

type UploadMessagesPhotoServer struct {
	Error     *Error `json:"error"`
	AlbumID   int    `json:"album_id,omitempty"`
	UserID    int    `json:"user_id,omitempty"`
	UploadURL string `json:"upload_url,omitempty"`
}

type UploadMessagesPhotoServerReply

type UploadMessagesPhotoServerReply struct {
	Error    *Error                    `json:"error"`
	Response UploadMessagesPhotoServer `json:"response,omitempty"`
}

type UploadPhotoFile

type UploadPhotoFile struct {
	Server int    `json:"server,omitempty"`
	Photo  string `json:"photo,omitempty"`
	Hash   string `json:"hash,omitempty"`
}

type User

type User struct {
	Error                *Error           `json:"error"`
	ID                   int              `json:"id,omitempty"`
	Name                 string           `json:"first_name,omitempty"`
	Surname              string           `json:"last_name,omitempty"`
	Deactivated          string           `json:"deactivated,omitempty"`
	Closed               bool             `json:"is_closed"`
	CanAccessClosed      bool             `json:"can_access_closed"`
	About                string           `json:"about,omitempty"`
	Activities           string           `json:"activities,omitempty"`
	BirthDate            string           `json:"bdate,omitempty"`
	Banned               int              `json:"blacklisted,omitempty"`
	BannedByMe           int              `json:"blacklisted_by_me,omitempty"`
	Books                string           `json:"books,omitempty"`
	CanPost              int              `json:"can_post,omitempty"`
	CanSeePosts          int              `json:"can_see_all_posts,omitempty"`
	CanSeeAudio          int              `json:"can_see_audio,omitempty"`
	CanSendFriendRequest int              `json:"can_send_friend_request,omitempty"`
	CanWriteMessage      int              `json:"can_write_private_message,omitempty"`
	Career               []UserCareer     `json:"career,omitempty"`
	City                 UserCity         `json:"city,omitempty"`
	MutualFriends        int              `json:"common_count,omitempty"`
	Connections          any              `json:"connections,omitempty"`
	Contacts             UserContacts     `json:"contacts,omitempty"`
	Counters             UserCounters     `json:"counters,omitempty"`
	Country              UserCountry      `json:"country,omitempty"`
	CropPhoto            CropPhoto        `json:"crop_photo,omitempty"`
	Domain               string           `json:"domain,omitempty"`
	Education            UserEducation    `json:"education,omitempty"`
	Exports              any              `json:"exports,omitempty"`
	NameNominative       string           `json:"first_name_nom,omitempty"`
	NameGenitive         string           `json:"first_name_gen,omitempty"`
	NameDative           string           `json:"first_name_dat,omitempty"`
	NameAccusative       string           `json:"first_name_acc,omitempty"`
	NameInstrumental     string           `json:"first_name_ins,omitempty"`
	NameAblative         string           `json:"first_name_abl,omitempty"`
	FollowersCount       int              `json:"followers_count,omitempty"`
	Games                string           `json:"games,omitempty"`
	HasMobile            int              `json:"has_mobile,omitempty"`
	HasPhoto             int              `json:"has_photo,omitempty"`
	HomeTown             string           `json:"home_town,omitempty"`
	Interests            string           `json:"interests,omitempty"`
	IsFavorite           int              `json:"is_favorite,omitempty"`
	IsFriend             int              `json:"is_friend,omitempty"`
	IsHiddenFromFeed     int              `json:"is_hidden_from_feed,omitempty"`
	IsNoIndex            int              `json:"is_no_index,omitempty"`
	SurnameNominative    string           `json:"last_name_nom,omitempty"`
	SurnameGenitive      string           `json:"last_name_gen,omitempty"`
	SurnameDative        string           `json:"last_name_dat,omitempty"`
	SurnameAccusative    string           `json:"last_name_acc,omitempty"`
	SurnameInstrumental  string           `json:"last_name_ins,omitempty"`
	SurnameAblative      string           `json:"last_name_abl,omitempty"`
	LastSeen             UserLastSeen     `json:"last_seen,omitempty"`
	Lists                string           `json:"lists,omitempty"`
	MaidenName           string           `json:"maiden_name,omitempty"`
	Military             []UserMilitary   `json:"military,omitempty"`
	Movies               string           `json:"movies,omitempty"`
	Music                string           `json:"music,omitempty"`
	Nickname             string           `json:"nickname,omitempty"`
	Occupation           UserOccupation   `json:"occupation,omitempty"`
	Online               int              `json:"online,omitempty"`
	Personal             UserPersonal     `json:"personal,omitempty"`
	Photo50              string           `json:"photo_50,omitempty"`
	Photo100             string           `json:"photo_100,omitempty"`
	PhotoOriginal200     string           `json:"photo_200_orig,omitempty"`
	Photo200             string           `json:"photo_200,omitempty"`
	PhotoOriginal400     string           `json:"photo_400_orig,omitempty"`
	PhotoID              string           `json:"photo_id,omitempty"`
	PhotoMax             string           `json:"photo_max,omitempty"`
	PhotoOriginalMax     string           `json:"photo_max_orig,omitempty"`
	Quotes               string           `json:"quotes,omitempty"`
	Relatives            []UserRelatives  `json:"relatives,omitempty"`
	Relation             int              `json:"relation,omitempty"`
	Schools              []UserSchools    `json:"schools,omitempty"`
	ScreenName           string           `json:"screen_name,omitempty"`
	Gender               int              `json:"sex,omitempty"`
	Site                 string           `json:"site,omitempty"`
	Status               string           `json:"status,omitempty"`
	Timezone             any              `json:"timezone,omitempty"`
	Trending             int              `json:"trending,omitempty"`
	TV                   string           `json:"tv,omitempty"`
	Universities         UserUniversities `json:"universities,omitempty"`
	Verified             int              `json:"verified,omitempty"`
	WallDefault          string           `json:"wall_default,omitempty"`
}

type UserCareer

type UserCareer struct {
	GroupID   int    `json:"group_id,omitempty"`
	Company   string `json:"company,omitempty"`
	CountryID int    `json:"country_id,omitempty"`
	CityID    int    `json:"city_id,omitempty"`
	CityName  string `json:"city_name,omitempty"`
	From      int    `json:"from,omitempty"`
	Until     int    `json:"until,omitempty"`
	Position  string `json:"position,omitempty"`
}

type UserCity

type UserCity struct {
	ID    int    `json:"id,omitempty"`
	Title string `json:"title,omitempty"`
}

type UserContacts

type UserContacts struct {
	MobilePhone string `json:"mobile_phone,omitempty"`
	HomePhone   string `json:"home_phone,omitempty"`
}

type UserCounters

type UserCounters struct {
	Albums        int `json:"albums,omitempty"`
	Videos        int `json:"videos,omitempty"`
	Audios        int `json:"audios,omitempty"`
	Photos        int `json:"photos,omitempty"`
	Notes         int `json:"notes,omitempty"`
	Friends       int `json:"friends,omitempty"`
	Gifts         int `json:"gifts,omitempty"`
	Groups        int `json:"groups,omitempty"`
	OnlineFriends int `json:"online_friends,omitempty"`
	MutualFriends int `json:"mutual_friends,omitempty"`
	UserVideos    int `json:"user_videos,omitempty"`
	UserPhotos    int `json:"user_photos,omitempty"`
	Followers     int `json:"followers,omitempty"`
	Pages         int `json:"pages,omitempty"`
	Subscriptions int `json:"subscriptions,omitempty"`
}

type UserCountry

type UserCountry struct {
	ID    int    `json:"id,omitempty"`
	Title string `json:"title,omitempty"`
}

type UserEducation

type UserEducation struct {
	University     int    `json:"university,omitempty"`
	UniversityName string `json:"university_name,omitempty"`
	Faculty        int    `json:"faculty,omitempty"`
	FacultyName    string `json:"faculty_name,omitempty"`
	Graduation     int    `json:"graduation,omitempty"`
}

type UserLastSeen

type UserLastSeen struct {
	Time     int `json:"time,omitempty"`
	Platform int `json:"platform,omitempty"`
}

type UserMilitary

type UserMilitary struct {
	Unit      string `json:"unit,omitempty"`
	UnitID    int    `json:"unit_id,omitempty"`
	CountryID int    `json:"country_id,omitempty"`
	From      int    `json:"from,omitempty"`
	Until     int    `json:"until,omitempty"`
}

type UserOccupation

type UserOccupation struct {
	Type string `json:"type,omitempty"`
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type UserPersonal

type UserPersonal struct {
	Political  int      `json:"political,omitempty"`
	Languages  []string `json:"langs,omitempty"`
	Religion   string   `json:"religion,omitempty"`
	Inspired   string   `json:"inspired_by,omitempty"`
	PeopleMain int      `json:"people_main,omitempty"`
	LifeMain   int      `json:"life_main,omitempty"`
	Smoking    int      `json:"smoking,omitempty"`
	Alcohol    int      `json:"alcohol,omitempty"`
}

type UserRelatives

type UserRelatives struct {
	ID   int `json:"id,omitempty"`
	Name int `json:"name,omitempty"`
	Type int `json:"type,omitempty"`
}

type UserSchools

type UserSchools struct {
	ID            string `json:"id,omitempty"`
	Country       int    `json:"country,omitempty"`
	City          int    `json:"city,omitempty"`
	Name          string `json:"name,omitempty"`
	YearFrom      int    `json:"year_from,omitempty"`
	YearTo        int    `json:"year_to,omitempty"`
	YearGraduated int    `json:"year_graduated,omitempty"`
	Class         string `json:"class,omitempty"`
	Speciality    string `json:"speciality,omitempty"`
	Type          int    `json:"type,omitempty"`
	TypeName      string `json:"type_str,omitempty"`
}

type UserUniversities

type UserUniversities []UserUniversity

type UserUniversity

type UserUniversity struct {
	ID              int    `json:"id,omitempty"`
	Country         int    `json:"country,omitempty"`
	City            int    `json:"city,omitempty"`
	Name            string `json:"name,omitempty"`
	Faculty         int    `json:"faculty,omitempty"`
	FacultyName     string `json:"faculty_name,omitempty"`
	Chair           int    `json:"chair,omitempty"`
	ChairName       string `json:"chair_name,omitempty"`
	Graduation      int    `json:"graduation,omitempty"`
	EducationForm   string `json:"education_form,omitempty"`
	EducationStatus string `json:"education_status,omitempty"`
}

type Users

type Users struct {
	Error *Error `json:"error"`
	Users []User `json:"response,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL