types

package
v0.0.7-dev Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Attachment

type Attachment string

type Attachments

type Attachments []string

type Ban

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

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,omitempty"`
	Count int    `json:"count,omitempty"`
	Bans  []int  `json:"items,omitempty"`
	Users []User `json:"profiles,omitempty"`
}

type BannedUser

type BannedUser struct {
	Error   Error       `json:"error,omitempty"`
	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,omitempty"`
	Count int          `json:"count,omitempty"`
	Bans  []BannedUser `json:"items,omitempty"`
}

type CanWriteChat

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

type Characters

type Characters int

type Chat

type Chat struct {
	Error Error `json:"error,omitempty"`
	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 ChatID

type ChatID int
type ChatLink struct {
	Error Error  `json:"error,omitempty"`
	Link  string `json:"link,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,omitempty"`
	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 ChatMessageID

type ChatMessageID int

type ChatMessagesID

type ChatMessagesID []int

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,omitempty"`
	Count  int     `json:"count,omitempty"`
	Chats  []Chat  `json:"items,omitempty"`
	Users  []User  `json:"profiles,omitempty"`
	Groups []Group `json:"groups,omitempty"`
}

type ChatsID

type ChatsID []int

type City

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

type Comment

type Comment string

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 Count

type Count int

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 {
	Error                Error            `json:"error,omitempty"`
	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 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,omitempty"`
	ChatID int   `json:"chat_id,omitempty"`
	Users  []int `json:"peer_ids,omitempty"`
}

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 DeleteForAll

type DeleteForAll bool

type DeleteMessage

type DeleteMessage struct {
	Error         ErrorDeleteMessage `json:"error,omitempty"`
	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 DeleteMessages

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

type Dialogs

type Dialogs struct {
	Error Error `json:"error,omitempty"`
}

type DisableMentions

type DisableMentions bool

type Domain

type Domain string
type DontParseLinks bool

type EditMessage

type EditMessage struct {
	Error Error `json:"error,omitempty"`
	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 CreateInternalError

func CreateInternalError(message error) Error

type ErrorDeleteMessage

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

type ErrorParam

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

type EventID

type EventID string

type Everyone

type Everyone bool

type Execute

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

type ExpireTime

type ExpireTime int

type Extended

type Extended bool

type Fields

type Fields []string

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,omitempty"`
	Count int    `json:"count,omitempty"`
	Gifts []Gift `json:"items,omitempty"`
}

type Group

type Group struct {
	Error            Error     `json:"error,omitempty"`
	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 GroupID

type GroupID int

type Groups

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

type GroupsID

type GroupsID []int

type Health

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

type HistoryMessages

type HistoryMessages struct {
	Error    Error            `json:"error,omitempty"`
	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 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,omitempty"`
	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 Intent

type Intent string

type KeepForwardMessages

type KeepForwardMessages bool

type KeepSnippets

type KeepSnippets bool

type Keyboard

type Keyboard string

type Latitude

type Latitude string

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 LongPoll

type LongPoll struct {
	Error   Error  `json:"error,omitempty"`
	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 Longitude

type Longitude string

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 MessageID

type MessageID int

type Messages

type Messages struct {
	Error    Error            `json:"error,omitempty"`
	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 MessagesID

type MessagesID []int

type Name

type Name string

type NameCase

type NameCase string

type NeedPTS

type NeedPTS bool

type Offers

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

type Offset

type Offset int

type OnlineStatus

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

type OwnerID

type OwnerID int

type OwnersID

type OwnersID []int

type Payload

type Payload string

type PinMessage

type PinMessage struct {
	Error       Error               `json:"error,omitempty"`
	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 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   int `json:"disabled_until,omitempty"`
	ForeverDisabled int `json:"disabled_forever,omitempty"`
	Sound           int `json:"sound,omitempty"`
	NoSound         int `json:"no_sound,omitempty"`
}

type RandomID

type RandomID int

type Reason

type Reason int

type Reset

type Reset bool

type ResolveDomain

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

type Rev

type Rev bool

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,omitempty"`
	Type     string                    `json:"type,omitempty"`
	Document SaveUploadMessageDocument `json:"doc,omitempty"`
}

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 SaveUploadMessagesPhotos

type SaveUploadMessagesPhotos struct {
	Error  Error `json:"error,omitempty"`
	Photos []SaveUploadMessagesPhoto
}

type SendEventMessage

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

type SendMessage

type SendMessage struct {
	Error         Error `json:"error,omitempty"`
	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,omitempty"`
	Messages []SendMessage `json:"response,omitempty"`
}

type SetLongPoll

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

type SetStatus

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

type SetStorage

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

type ShowComment

type ShowComment bool

type Spam

type Spam bool

type StartMessageID

type StartMessageID int

type Status

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

type StatusHealth

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

type StickerID

type StickerID int

type Storage

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

type StorageKeys

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

type Storages

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

type SubscribeID

type SubscribeID int

type Template

type Template string

type Text

type Text string

type Time

type Time int

type Title

type Title string

type Token

type Token string

type Type

type Type int

type URL

type URL string

type UpdateWidgets

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

type UploadDocumentFile

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

type UploadMessagesDocumentServer

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

type UploadMessagesPhoto

type UploadMessagesPhoto struct {
	Error     Error  `json:"error,omitempty"`
	AlbumID   int    `json:"album_id,omitempty"`
	UserID    int    `json:"user_id,omitempty"`
	UploadURL string `json:"upload_url,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,omitempty"`
	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 UserID

type UserID int

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,omitempty"`
	Users []User `json:"response,omitempty"`
}

type UsersID

type UsersID []int

type Version

type Version float32

Jump to

Keyboard shortcuts

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