Documentation ¶
Index ¶
- Constants
- type Addresses
- type Ban
- type BanInfo
- type Banned
- type BannedReply
- type BannedUser
- type BannedUsers
- type BannedUsersReply
- type CanWriteChat
- type Chat
- type ChatLink
- type ChatLinkReply
- type ChatMember
- type ChatMembers
- type ChatMembersReply
- type ChatReply
- type ChatRestrictions
- type ChatSettings
- type ChatSortID
- type Chats
- type City
- type Contact
- type Counter
- type Counters
- type CountersReply
- type Country
- type Cover
- type CreateChat
- type CreateChatReply
- type Crop
- type CropPhoto
- type Currency
- type DeleteMessage
- type DeleteMessageError
- type DeleteMessages
- type Dialogs
- type EditMessage
- type Error
- type ErrorParam
- type Execute
- type FriendsLike
- type Gift
- type GiftInfo
- type Gifts
- type GiftsReply
- type Group
- type Groups
- type GroupsReply
- type Health
- type HealthReply
- type HealthStatus
- type HistoryMessages
- type HistoryMessagesReply
- type Image
- type Info
- type InfoBanUser
- type InfoReply
- type KickUser
- type Like
- type Link
- type LongPollServer
- type LongPollServerReply
- type Market
- type Messages
- type MessagesFolder
- type MessagesReply
- type Offers
- type OffersReply
- type OnlineStatus
- type PinMessage
- type PinMessageReply
- type Place
- type PushSettings
- type ResolveDomain
- type ResolveDomainReply
- type SaveMessagesDocument
- type SaveUploadMessageDocument
- type SaveUploadMessagesDocument
- type SaveUploadMessagesDocumentReply
- type SaveUploadMessagesPhoto
- type SaveUploadMessagesPhotoReply
- type SendEventMessage
- type SendMessage
- type SendMessages
- type SetGroupLongPoll
- type SetStatus
- type SetStorage
- type Status
- type StatusReply
- type Storage
- type StorageKeys
- type Storages
- type UpdateWidgets
- type UploadDocumentFile
- type UploadMessagesDocumentServer
- type UploadMessagesDocumentServerReply
- type UploadMessagesPhotoServer
- type UploadMessagesPhotoServerReply
- type UploadPhotoFile
- type User
- type UserCareer
- type UserCity
- type UserContacts
- type UserCounters
- type UserCountry
- type UserEducation
- type UserLastSeen
- type UserMilitary
- type UserOccupation
- type UserPersonal
- type UserRelatives
- type UserSchools
- type UserUniversities
- type UserUniversity
- type Users
Constants ¶
View Source
const InternalErrorCode = 1512
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannedReply ¶
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 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 ChatLinkReply ¶
type ChatMember ¶
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 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 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 CreateChat ¶
type CreateChatReply ¶
type CreateChatReply struct { Error *Error `json:"error"` Response CreateChat ` json:"response"` }
type DeleteMessage ¶
type DeleteMessageError ¶
type DeleteMessages ¶
type DeleteMessages struct { Error *Error `json:"error"` Messages []DeleteMessage `json:"response,omitempty"` }
type EditMessage ¶
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 ¶
type ErrorParam ¶
type FriendsLike ¶
type GiftsReply ¶
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 GroupsReply ¶
type Health ¶
type Health struct { Error *Error `json:"error"` Statuses []HealthStatus `json:"health_statuses,omitempty"` }
type HealthReply ¶
type HealthStatus ¶
type HistoryMessages ¶
type HistoryMessagesReply ¶
type HistoryMessagesReply struct { Error *Error `json:"error"` Response HistoryMessages `json:"response"` }
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 Like ¶
type Like struct { Liked bool `json:"is_liked,omitempty"` Friends FriendsLike `json:"friends,omitempty"` }
type LongPollServer ¶
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 MessagesFolder ¶
type MessagesReply ¶
type OffersReply ¶
type OnlineStatus ¶
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 ResolveDomain ¶
type ResolveDomainReply ¶
type ResolveDomainReply struct { Error *Error `json:"error"` Response ResolveDomain `json:"response"` }
type SaveMessagesDocument ¶
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 SaveUploadMessagesPhotoReply ¶
type SaveUploadMessagesPhotoReply struct { Error *Error `json:"error"` Photos []SaveUploadMessagesPhoto `json:"response"` }
type SendEventMessage ¶
type SendMessage ¶
type SendMessages ¶
type SendMessages struct { Error *Error `json:"error"` Messages []SendMessage `json:"response,omitempty"` }
type SetGroupLongPoll ¶
type SetStorage ¶
type StatusReply ¶
type StorageKeys ¶
type UpdateWidgets ¶
type UploadDocumentFile ¶
type UploadDocumentFile struct {
File string `json:"file,omitempty"`
}
type UploadMessagesDocumentServerReply ¶
type UploadMessagesDocumentServerReply struct { Error *Error `json:"error"` Response UploadMessagesDocumentServer `json:"response,omitempty"` }
type UploadMessagesPhotoServerReply ¶
type UploadMessagesPhotoServerReply struct { Error *Error `json:"error"` Response UploadMessagesPhotoServer `json:"response,omitempty"` }
type UploadPhotoFile ¶
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 UserContacts ¶
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 UserEducation ¶
type UserLastSeen ¶
type UserMilitary ¶
type UserOccupation ¶
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 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"` }
Source Files ¶
- ban.go
- banUser.go
- chatControl.go
- contact.go
- counters.go
- deleteMessage.go
- dialogs.go
- editMessage.go
- error.go
- execute.go
- gifts.go
- group.go
- health.go
- historyMessages.go
- info.go
- kickUser.go
- longPoll.go
- message.go
- offers.go
- onlineStatus.go
- pinMessage.go
- resolveDomain.go
- saveUploadMessagesDocument.go
- saveUploadMessagesPhoto.go
- sendEventMessage.go
- sendMessage.go
- setLongPollSettings.go
- status.go
- storage.go
- uploadFiles.go
- uploadMessagesServer.go
- user.go
- widgets.go
Click to show internal directories.
Click to hide internal directories.