Documentation
¶
Index ¶
- func NewForward(chatID, chatMessageID int, isReply bool) (string, error)
- func NewRandomID() int
- type ActiveOffers
- type AddFriend
- type AddFriendsList
- type AddGroupAddress
- type AddGroupCallbackServer
- type AddGroupLink
- type AlbumPhotos
- type Albums
- type ApproveRequestGroup
- type AreFriends
- type BanUser
- type BanUserComment
- type BanUsers
- type Bans
- type ChangePassword
- type ChatMembers
- type CreateChat
- type CreateGroup
- type DeleteGroupAddress
- type DeleteGroupCallbackServer
- type DeleteGroupLink
- type DeleteMessage
- type EditAccountInfo
- type EditFriends
- type EditFriendsList
- type EditGroup
- type EditGroupCallbackServer
- type EditGroupLink
- type EditGroupManager
- type EditMessage
- type EditProfileInfo
- type EventAction
- type Execute
- type Followers
- type Forward
- type Friends
- type FriendsList
- type FriendsRequests
- type GetBannedUsers
- type GetGroupAddresses
- type GetGroupCallbackServers
- type GetGroupCallbackSettings
- type GetGroupCatalogInfo
- type GetGroupInvitedUsers
- type GetGroupMembers
- type GetGroupRequests
- type GetGroups
- type GetStatus
- type GetUserGroups
- type Gifts
- type HistoryMessages
- type Info
- type InviteGroup
- type IsGroupMember
- type JoinGroup
- type KickUser
- type Message
- type MutualFriends
- type OnlineFriends
- type PinMessage
- type RemoveGroupUser
- type ReorderGroupLink
- type ReportUser
- type SearchFriends
- type SearchGroup
- type SearchUser
- type SendMessage
- type SendMessageEventAnswer
- type SetGroupLongPollSettings
- type SetOnline
- type SetStatus
- type Subscriptions
- type SuggestionsFriends
- type UnbanUser
- type UploadFile
- type UploadMessagesDocumentServer
- type UploadMessagesPhotoServer
- type User
- type UserLongPollServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandomID ¶
func NewRandomID() int
Types ¶
type ActiveOffers ¶
type AddFriendsList ¶
type AddGroupAddress ¶
type AddGroupAddress struct {
GroupID int `json:"group_id"`
Title string `json:"title"`
Address string `json:"address"`
AdditionalAddress string `json:"additional_address"`
CountryID int `json:"country_id"`
CityID int `json:"city_id"`
MetroID int `json:"metro_id"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
Phone string `json:"phone"`
WorkInfoStatus string `json:"work_info_status"`
Timetable string `json:"timetable"`
IsMainAddress bool `json:"is_main_address" to:"int"`
}
type AddGroupCallbackServer ¶
type AddGroupLink ¶
type AlbumPhotos ¶
type AlbumPhotos struct {
OwnerID int `json:"owner_id"`
AlbumID any `json:"album_id"`
Type string `json:"type"`
PhotoIDs []int `json:"photo_ids"`
Rev bool `json:"rev"`
Extended bool `json:"extended"`
FeedType string `json:"feed_type"`
Feed int `json:"feed"`
Sizes bool `json:"sizes"`
Offset int `json:"offset"`
Count int `json:"count"`
}
type ApproveRequestGroup ¶
type AreFriends ¶
type BanUserComment ¶
type ChangePassword ¶
type ChatMembers ¶
type CreateChat ¶
type CreateGroup ¶
type DeleteGroupAddress ¶
type DeleteGroupLink ¶
type DeleteMessage ¶
type DeleteMessage struct {
GroupID int `json:"group_id"`
ChatID int `json:"peer_id"`
MessageID int `json:"messages_ids"`
MessagesIDs []int `json:"messages_ids"` //nolint:govet
ChatMessageID int `json:"cmids"`
ChatMessagesIDs []int `json:"cmids"` //nolint:govet
Spam bool `json:"spam"`
Everyone bool `json:"delete_for_all"`
Reason int `json:"reason"`
}
type EditAccountInfo ¶
type EditFriends ¶
type EditFriendsList ¶
type EditGroup ¶
type EditGroup struct {
GroupID int `json:"group_id"`
Title string `json:"title"`
Description string `json:"description"`
ScreenName string `json:"screen_name"`
Access int `json:"access"`
Website string `json:"website"`
Subject int `json:"subject"`
EMail string `json:"email"`
Phone string `json:"phone"`
RSS string `json:"rss"`
EventStartDate int `json:"event_start_date"`
EventFinishDate int `json:"event_finish_date"`
EventGroupID int `json:"event_group_id"`
PublicCategory int `json:"public_category"`
PublicSubcategory int `json:"public_subcategory"`
PublicDate string `json:"public_date"`
Wall int `json:"wall"`
Topics int `json:"topics"`
Photos int `json:"photos"`
Video int `json:"video"`
Audio int `json:"audio"`
Links bool `json:"links" to:"int"`
Events bool `json:"events" to:"int"`
Places bool `json:"places" to:"int"`
Contacts bool `json:"contacts" to:"int"`
Docs int `json:"docs"`
Wiki int `json:"wiki"`
Messages bool `json:"messages" to:"int"`
Articles bool `json:"articles" to:"int"`
Addresses bool `json:"addresses" to:"int"`
AgeLimits int `json:"age_limits"`
Market bool `json:"market" to:"int"`
MarketButtons string `json:"market_buttons"`
MarketComments bool `json:"market_comments" to:"int"`
MarketCountry string `json:"market_country"`
MarketCity string `json:"market_city"`
MarketCurrency int `json:"market_currency"`
MarketContact int `json:"market_contact"`
MarketWiki int `json:"market_wiki"`
ObsceneFilter bool `json:"obscene_filter" to:"int"`
ObsceneStopwords bool `json:"obscene_stopwords" to:"int"`
ToxicFilter bool `json:"toxic_filter" to:"int"`
DisableRepliesFromGroups bool `json:"disable_replies_from_groups" to:"int"`
ObsceneWord string `json:"obscene_word"`
MainSection int `json:"main_section"`
SecondarySection int `json:"secondary_section"`
Country int `json:"country"`
City int `json:"city"`
}
type EditGroupCallbackServer ¶
type EditGroupLink ¶
type EditGroupManager ¶
type EditMessage ¶
type EditMessage struct {
GroupID int `json:"group_id"`
ChatID int `json:"peer_id"`
Text string `json:"message"`
MessageID int `json:"message_id"`
ChatMessageID int `json:"conversation_message_id"`
Attachment string `json:"attachment"`
Attachments []string `json:"attachment,omitempty"` //nolint:govet
Template string `json:"template,omitempty"`
Keyboard string `json:"keyboard,omitempty"`
KeepForwardMessages bool `json:"keep_forward_messages,omitempty"`
KeepSnippets bool `json:"keep_snippets,omitempty"`
DontParseLinks bool `json:"dont_parse_links,omitempty"`
DisableMentions bool `json:"disable_mentions,omitempty"`
Latitude string `json:"latitude,omitempty"`
Longitude string `json:"longitude,omitempty"`
}
type EditProfileInfo ¶
type EditProfileInfo struct {
Name string `json:"first_name"`
Surname string `json:"last_name"`
MaidenName string `json:"maiden_name"`
Domain string `json:"screen_name"`
CancelRequestID int `json:"cancel_request_id"`
Sex int `json:"sex"`
Relation int `json:"relation"`
RelationPartnerID int `json:"relation_partner_id"`
Birthdate string `json:"bdate"`
BirthdateVisibility int `json:"bdate_visibility"`
HomeTown string `json:"home_town"`
CountryID int `json:"country_id"`
CityID int `json:"city_id"`
Status string `json:"status"`
}
type EventAction ¶
type EventAction struct {
Type string `json:"type,omitempty"`
Text string `json:"text,omitempty"` // show_snackbar
Link string `json:"link,omitempty"` // open_link
// open_app
AppID int `json:"app_id,omitempty"`
ApplicationID int `json:"-"`
OwnerID int `json:"owner_id,omitempty"`
Hash string `json:"hash,omitempty"`
}
func (EventAction) JSON ¶
func (action EventAction) JSON() string
type FriendsList ¶
type FriendsRequests ¶
type GetBannedUsers ¶
type GetGroupAddresses ¶
type GetGroupCallbackServers ¶
type GetGroupCatalogInfo ¶
type GetGroupInvitedUsers ¶
type GetGroupMembers ¶
type GetGroupRequests ¶
type GetUserGroups ¶
type HistoryMessages ¶
type InviteGroup ¶
type IsGroupMember ¶
type MutualFriends ¶
type OnlineFriends ¶
type PinMessage ¶
type RemoveGroupUser ¶
type ReorderGroupLink ¶
type ReportUser ¶
type SearchFriends ¶
type SearchGroup ¶
type SearchUser ¶
type SearchUser struct {
Query string `json:"q"`
Sort int `json:"sort"`
Offset int `json:"offset"`
Count int `json:"count"`
Fields string `json:"fields"`
CityID int `json:"city"`
CountryID int `json:"country"`
Hometown int `json:"hometown"`
UniversityCountry int `json:"university_country"`
University int `json:"university"`
UniversityYear int `json:"university_year"`
UniversityFaculty int `json:"university_faculty"`
UniversityChair int `json:"university_chair"`
Gender int `json:"sex"`
Status int `json:"status"`
AgeFrom int `json:"age_from"`
AgeTo int `json:"age_to"`
BirthDay int `json:"birth_day"`
BirthMonth int `json:"birth_month"`
BirthYear int `json:"birth_year"`
Online int `json:"online"`
HasPhoto int `json:"has_photo"`
SchoolCountry int `json:"school_country"`
SchoolCity int `json:"school_city"`
SchoolClass int `json:"school_class"`
School int `json:"school"`
SchoolYear int `json:"school_year"`
Religion string `json:"religion"`
Company string `json:"company"`
Position string `json:"position"`
GroupID int `json:"group_id"`
FromList string `json:"from_list"`
ScreenRef string `json:"screen_ref"`
}
type SendMessage ¶
type SendMessage struct {
GroupID int `json:"group_id"`
RandomID int `json:"random_id"`
Domain string `json:"domain"`
ChatID int `json:"peer_ids"`
ChatIDs []int `json:"peer_ids"` //nolint:govet
UserID int `json:"user_id"`
UserIDs []int `json:"user_ids"`
Text string `json:"message"`
Latitude string `json:"lat"`
Longitude string `json:"long"`
Attachments []string `json:"attachment"`
Attachment string `json:"attachment"` //nolint:govet
Forward string `json:"forward"`
StickerID int `json:"sticker_id"`
Keyboard string `json:"keyboard"`
Template string `json:"template"`
Payload string `json:"payload"`
ContentSource string `json:"content_source"`
DontParseLinks bool `json:"dont_parse_links" to:"int"`
DisableMentions bool `json:"disable_mentions" to:"int"`
Intent string `json:"intent"`
SubscribeID int `json:"subscribe_id"`
ExpireTime int `json:"expire_ttl"`
}
type SendMessageEventAnswer ¶
type SetGroupLongPollSettings ¶
type SetGroupLongPollSettings struct {
GroupID int `json:"group_id"`
Enabled bool `json:"enabled" to:"int"`
APIVersion string `json:"api_version"`
MessageNew bool `json:"message_new" to:"int"`
MessageReply bool `json:"message_reply" to:"int"`
MessageAllow bool `json:"message_allow" to:"int"`
MessageDeny bool `json:"message_deny" to:"int"`
MessageEdit bool `json:"message_edit" to:"int"`
MessageTypingState bool `json:"message_typing_state" to:"int"`
PhotoNew bool `json:"photo_new" to:"int"`
AudioNew bool `json:"audio_new" to:"int"`
VideoNew bool `json:"video_new" to:"int"`
WallReplyNew bool `json:"wall_reply_new" to:"int"`
WallReplyEdit bool `json:"wall_reply_edit" to:"int"`
WallReplyDelete bool `json:"wall_reply_delete" to:"int"`
WallReplyRestore bool `json:"wall_reply_restore" to:"int"`
WallPostNew bool `json:"wall_post_new" to:"int"`
WallRepost bool `json:"wall_repost" to:"int"`
BoardPostNew bool `json:"board_post_new" to:"int"`
BoardPostEdit bool `json:"board_post_edit" to:"int"`
BoardPostRestore bool `json:"board_post_restore" to:"int"`
BoardPostDelete bool `json:"board_post_delete" to:"int"`
PhotoCommentNew bool `json:"photo_comment_new" to:"int"`
PhotoCommentEdit bool `json:"photo_comment_edit" to:"int"`
PhotoCommentDelete bool `json:"photo_comment_delete" to:"int"`
PhotoCommentRestore bool `json:"photo_comment_restore" to:"int"`
VideoCommentNew bool `json:"video_comment_new" to:"int"`
VideoCommentEdit bool `json:"video_comment_edit" to:"int"`
VideoCommentDelete bool `json:"video_comment_delete" to:"int"`
VideoCommentRestore bool `json:"video_comment_restore" to:"int"`
MarketCommentNew bool `json:"market_comment_new" to:"int"`
MarketCommentEdit bool `json:"market_comment_edit" to:"int"`
MarketCommentDelete bool `json:"market_comment_delete" to:"int"`
MarketCommentRestore bool `json:"market_comment_restore" to:"int"`
PollVoteNew bool `json:"poll_vote_new" to:"int"`
GroupJoin bool `json:"group_join" to:"int"`
GroupLeave bool `json:"group_leave" to:"int"`
GroupChangeSettings bool `json:"group_change_settings" to:"int"`
GroupChangePhoto bool `json:"group_change_photo" to:"int"`
GroupOfficersEdit bool `json:"group_officers_edit" to:"int"`
UserBlock bool `json:"user_block" to:"int"`
UserUnblock bool `json:"user_unblock" to:"int"`
LikeAdd bool `json:"like_add" to:"int"`
LikeRemove bool `json:"like_remove" to:"int"`
MessageEvent bool `json:"message_event" to:"int"`
DonutSubscriptionCreate bool `json:"donut_subscription_create" to:"int"`
DonutSubscriptionProlonged bool `json:"donut_subscription_prolonged" to:"int"`
DonutSubscriptionCancelled bool `json:"donut_subscription_cancelled" to:"int"`
DonutSubscriptionPriceChanged bool `json:"donut_subscription_price_changed" to:"int"`
DonutSubscriptionExpired bool `json:"donut_subscription_expired" to:"int"`
DonutMoneyWithdraw bool `json:"donut_money_withdraw" to:"int"`
DonutMoneyWithdrawError bool `json:"donut_money_withdraw_error" to:"int"`
}
type Subscriptions ¶
type SuggestionsFriends ¶
type UploadFile ¶ added in v1.1.0
type UploadMessagesPhotoServer ¶
type UploadMessagesPhotoServer struct {
ChatID int
}
type UserLongPollServer ¶
Click to show internal directories.
Click to hide internal directories.