Documentation ¶
Index ¶
- type Addresses
- type Attachment
- type Attachments
- type Ban
- type BanInfo
- type Banned
- type BannedUser
- type BannedUsers
- type CanWriteChat
- type Characters
- type Chat
- type ChatID
- type ChatLink
- type ChatMember
- type ChatMembers
- type ChatMessageID
- type ChatMessagesID
- type ChatRestrictions
- type ChatSettings
- type ChatSortID
- type Chats
- type ChatsID
- type City
- type Comment
- type Contact
- type Count
- type Counter
- type Counters
- type Country
- type Cover
- type CreateChat
- type Crop
- type CropPhoto
- type Currency
- type DeleteForAll
- type DeleteMessage
- type DeleteMessages
- type Dialogs
- type DisableMentions
- type Domain
- type DontParseLinks
- type EditMessage
- type Error
- type ErrorDeleteMessage
- type ErrorParam
- type EventID
- type Everyone
- type Execute
- type ExpireTime
- type Extended
- type Fields
- type FriendsLike
- type Gift
- type GiftInfo
- type Gifts
- type Group
- type GroupID
- type Groups
- type GroupsID
- type Health
- type HistoryMessages
- type Image
- type Info
- type InfoBanUser
- type Intent
- type KeepForwardMessages
- type KeepSnippets
- type Keyboard
- type Latitude
- type Like
- type Link
- type LongPoll
- type Longitude
- type Market
- type MessageID
- type Messages
- type MessagesFolder
- type MessagesID
- type Name
- type NameCase
- type NeedPTS
- type Offers
- type Offset
- type OnlineStatus
- type OwnerID
- type OwnersID
- type Payload
- type PinMessage
- type Place
- type PushSettings
- type RandomID
- type Reason
- type Reset
- type ResolveDomain
- type Rev
- type SaveMessagesDocument
- type SaveUploadMessageDocument
- type SaveUploadMessagesDocument
- type SaveUploadMessagesPhoto
- type SaveUploadMessagesPhotos
- type SendEventMessage
- type SendMessage
- type SendMessages
- type SetLongPoll
- type SetStatus
- type SetStorage
- type ShowComment
- type Spam
- type StartMessageID
- type Status
- type StatusHealth
- type StickerID
- type Storage
- type StorageKeys
- type Storages
- type SubscribeID
- type Template
- type Text
- type Time
- type Title
- type Token
- type Type
- type URL
- type UpdateWidgets
- type UploadDocumentFile
- type UploadMessagesDocumentServer
- type UploadMessagesPhoto
- type UploadPhotoFile
- type User
- type UserCareer
- type UserCity
- type UserContacts
- type UserCounters
- type UserCountry
- type UserEducation
- type UserID
- type UserLastSeen
- type UserMilitary
- type UserOccupation
- type UserPersonal
- type UserRelatives
- type UserSchools
- type UserUniversities
- type UserUniversity
- type Users
- type UsersID
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment string
type Attachments ¶
type Attachments []string
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 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 ChatMember ¶
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 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 { 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 CreateChat ¶
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 DisableMentions ¶
type DisableMentions bool
type DontParseLinks ¶
type DontParseLinks bool
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 CreateInternalError ¶
type ErrorDeleteMessage ¶
type ErrorParam ¶
type ExpireTime ¶
type ExpireTime int
type FriendsLike ¶
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 Health ¶
type Health struct { Error Error `json:"error,omitempty"` Statuses []StatusHealth `json:"health_statuses,omitempty"` }
type HistoryMessages ¶
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 KeepForwardMessages ¶
type KeepForwardMessages bool
type KeepSnippets ¶
type KeepSnippets bool
type Like ¶
type Like struct { Liked bool `json:"is_liked,omitempty"` Friends FriendsLike `json:"friends,omitempty"` }
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 MessagesID ¶
type MessagesID []int
type OnlineStatus ¶
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 ResolveDomain ¶
type SaveMessagesDocument ¶
type SaveUploadMessagesDocument ¶
type SaveUploadMessagesDocument struct { Error Error `json:"error,omitempty"` Type string `json:"type,omitempty"` Document SaveUploadMessageDocument `json:"doc,omitempty"` }
type SaveUploadMessagesPhoto ¶
type SaveUploadMessagesPhotos ¶
type SaveUploadMessagesPhotos struct { Error Error `json:"error,omitempty"` Photos []SaveUploadMessagesPhoto }
type SendEventMessage ¶
type SendMessage ¶
type SendMessages ¶
type SendMessages struct { Error Error `json:"error,omitempty"` Messages []SendMessage `json:"response,omitempty"` }
type SetLongPoll ¶
type SetStorage ¶
type ShowComment ¶
type ShowComment bool
type StartMessageID ¶
type StartMessageID int
type StatusHealth ¶
type StorageKeys ¶
type SubscribeID ¶
type SubscribeID int
type UpdateWidgets ¶
type UploadDocumentFile ¶
type UploadDocumentFile struct {
File string `json:"file,omitempty"`
}
type UploadMessagesPhoto ¶
type UploadPhotoFile ¶
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 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
- customTypes.go
- deleteMessage.go
- dialogs.go
- editMessage.go
- error.go
- execute.go
- gifts.go
- groups.go
- health.go
- historyMessages.go
- info.go
- longPoll.go
- messages.go
- offers.go
- onlineStatus.go
- pinMessage.go
- resolveDomain.go
- saveUploadMessage.go
- sendEventMessage.go
- sendMessage.go
- status.go
- storage.go
- uploadFiles.go
- uploadMessagesServer.go
- users.go
- widgets.go
Click to show internal directories.
Click to hide internal directories.