types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForward

func NewForward(chatID, chatMessageID int, isReply bool) (string, error)

func NewRandomID

func NewRandomID() int

Types

type ActiveOffers

type ActiveOffers struct {
	Offset int `json:"offset"`
	Count  int `json:"count"`
}

type AddFriend

type AddFriend struct {
	UserID int    `json:"user_id"`
	Text   string `json:"text"`
	Follow bool   `json:"follow" to:"int"`
}

type AddFriendsList

type AddFriendsList struct {
	Name    string   `json:"name"`
	UserIDs []string `json:"user_ids"`
}

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 AddGroupCallbackServer struct {
	GroupID   int    `json:"group_id"`
	URL       string `json:"url"`
	Title     string `json:"title"`
	SecretKey string `json:"secret_key"`
}
type AddGroupLink struct {
	GroupID int    `json:"group_id"`
	Link    string `json:"link"`
	Text    string `json:"text"`
}

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 Albums

type Albums struct {
	OwnerID    int   `json:"owner_id"`
	AlbumsID   []int `json:"albums_id"`
	Offset     int   `json:"offset"`
	Count      int   `json:"count"`
	NeedSystem bool  `json:"need_system"`
	NeedCovers bool  `json:"need_covers"`
	Sizes      bool  `json:"sizes"`
}

type ApproveRequestGroup

type ApproveRequestGroup struct {
	GroupID int `json:"group_id"`
	UserID  int `json:"user_id"`
}

type AreFriends

type AreFriends struct {
	UserIDs  []string `json:"user_ids"`
	NeedSign int      `json:"need_sign"`
}

type BanUser

type BanUser struct {
	GroupID        int    `json:"group_id"`
	OwnerID        int    `json:"owner_id"`
	EndDate        int    `json:"end_date"`
	Reason         int    `json:"reason"`
	Comment        string `json:"comment"`
	CommentVisible bool   `json:"comment_visible" to:"int"`
}

type BanUserComment

type BanUserComment struct {
	Text string `json:"text"`
	Show bool   `json:"show"`
}

type BanUsers

type BanUsers struct {
	GroupID int      `json:"group_id"`
	UserID  int      `json:"user_id"`
	Offset  int      `json:"offset"`
	Count   int      `json:"count"`
	Fields  []string `json:"fields"`
}

type Bans

type Bans struct {
	Offset int `json:"offset"`
	Count  int `json:"count"`
}

type ChangePassword

type ChangePassword struct {
	RestoreSID         string `json:"restore_sid"`
	ChangePasswordHash string `json:"change_password_hash"`
	CurrentPassword    string `json:"old_password"`
	NewPassword        string `json:"new_password"`
}

type ChatMembers

type ChatMembers struct {
	GroupID int      `json:"group_id"`
	ChatID  int      `json:"peer_id"`
	Offset  int      `json:"offset"`
	Count   int      `json:"count"`
	Fields  []string `json:"fields"`
}

type CreateChat

type CreateChat struct {
	GroupID int    `json:"group_id"`
	UserID  int    `json:"user_ids"`
	UserIDs []int  `json:"user_ids"` //nolint:govet
	Title   string `json:"title"`
}

type CreateGroup

type CreateGroup struct {
	Title             string `json:"title"`
	Description       string `json:"description"`
	Type              string `json:"type"`
	PublicCategory    int    `json:"public_category"`
	PublicSubcategory int    `json:"public_subcategory"`
	Subtype           int    `json:"subtype"`
}

type DeleteGroupAddress

type DeleteGroupAddress struct {
	GroupID   int `json:"group_id"`
	AddressID int `json:"address_id"`
}

type DeleteGroupCallbackServer

type DeleteGroupCallbackServer struct {
	GroupID  int `json:"group_id"`
	ServerID int `json:"server_id"`
}
type DeleteGroupLink struct {
	GroupID int `json:"group_id"`
	LinkID  int `json:"link_id"`
}

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 EditAccountInfo struct {
	Intro         int    `json:"intro"`
	OnlyMyPosts   int    `json:"own_posts_default"`
	NoWallReplise int    `json:"no_wall_replies"`
	Name          string `json:"name"`
	Value         string `json:"value"`
}

type EditFriends

type EditFriends struct {
	UserID  int   `json:"user_id"`
	ListIDs []int `json:"list_ids"`
}

type EditFriendsList

type EditFriendsList struct {
	Name          string `json:"name"`
	ListID        int    `json:"list_id"`
	UserIDs       []int  `json:"user_ids"`
	AddUserIDs    []int  `json:"add_user_ids"`
	DeleteUserIDs []int  `json:"delete_user_ids"`
}

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 EditGroupCallbackServer struct {
	GroupID   int    `json:"group_id"`
	ServerID  int    `json:"server_id"`
	URL       string `json:"url"`
	Title     string `json:"title"`
	SecretKey string `json:"secret_key"`
}
type EditGroupLink struct {
	GroupID int    `json:"group_id"`
	LinkID  int    `json:"link_id"`
	Text    string `json:"text"`
}

type EditGroupManager

type EditGroupManager struct {
	GroupID         int    `json:"group_id"`
	UserID          int    `json:"user_id"`
	Role            string `json:"role"`
	IsContact       bool   `json:"is_contact" to:"int"`
	ContactPosition string `json:"contact_position"`
	ContactPhone    string `json:"contact_phone"`
	ContactEMail    string `json:"contact_email"`
}

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 Execute

type Execute struct {
	Code    any    `json:"code"`
	Version string `json:"func_v"`
}

type Followers

type Followers struct {
	UserIDs  []int    `json:"user_ids"`
	Offset   int      `json:"offset"`
	Count    int      `json:"count"`
	Fields   []string `json:"fields"`
	NameCase string   `json:"name_case"`
}

type Forward

type Forward struct {
	ChatID        int  `json:"peer_id"`
	ChatMessageID int  `json:"conversation_message_ids"`
	IsReply       bool `json:"is_reply"`
}

type Friends

type Friends struct {
	UserID   int      `json:"user_id"`
	Order    string   `json:"order"`
	ListID   int      `json:"list_id"`
	Count    int      `json:"count"`
	Offset   int      `json:"offset"`
	Fields   []string `json:"fields"`
	NameCase string   `json:"name_case"`
	Ref      string   `json:"ref"`
}

type FriendsList

type FriendsList struct {
	UserID       int `json:"user_id"`
	ReturnSystem int `json:"return_system"`
}

type FriendsRequests

type FriendsRequests struct {
	Offset     int    `json:"offset"`
	Count      int    `json:"count"`
	NeedMutual bool   `json:"need_mutual" to:"int"`
	Out        bool   `json:"out" to:"int"`
	Sort       int    `json:"sort"`
	NeedViewed bool   `json:"need_viewed" to:"int"`
	Ref        string `json:"ref"`
	Fields     string `json:"fields"`
}

type GetBannedUsers

type GetBannedUsers struct {
	GroupID int      `json:"group_id"`
	Offset  int      `json:"offset"`
	Count   int      `json:"count"`
	Fields  []string `json:"fields"`
	OwnerID int      `json:"owner_id"`
}

type GetGroupAddresses

type GetGroupAddresses struct {
	GroupID    int      `json:"group_id"`
	AddressIDs []any    `json:"address_ids"`
	Latitude   string   `json:"latitude"`
	Longitude  string   `json:"longitude"`
	Offset     int      `json:"offset"`
	Count      int      `json:"count"`
	Fields     []string `json:"fields"`
}

type GetGroupCallbackServers

type GetGroupCallbackServers struct {
	GroupID   int   `json:"group_id"`
	ServerIDs []any `json:"server_ids"`
}

type GetGroupCallbackSettings

type GetGroupCallbackSettings struct {
	GroupID  int `json:"group_id"`
	ServerID int `json:"server_id"`
}

type GetGroupCatalogInfo

type GetGroupCatalogInfo struct {
	Extended      bool `json:"extended" to:"int"`
	Subcategories bool `json:"subcategories" to:"int"`
}

type GetGroupInvitedUsers

type GetGroupInvitedUsers struct {
	Offset   int  `json:"offset"`
	Count    int  `json:"count"`
	Extended bool `json:"extended" to:"int"`
}

type GetGroupMembers

type GetGroupMembers struct {
	GroupID int      `json:"group_id"`
	Sort    string   `json:"sort"`
	Offset  int      `json:"offset"`
	Count   int      `json:"count"`
	Fields  []string `json:"fields"`
}

type GetGroupRequests

type GetGroupRequests struct {
	GroupID int      `json:"group_id"`
	Offset  int      `json:"offset"`
	Count   int      `json:"count"`
	Fields  []string `json:"fields"`
}

type GetGroups

type GetGroups struct {
	GroupIDs string   `json:"group_ids"`
	GroupID  string   `json:"group_id"`
	Fields   []string `json:"fields"`
}

type GetStatus

type GetStatus struct {
	GroupID int `json:"group_id"`
	UserID  int `json:"user_id"`
}

type GetUserGroups

type GetUserGroups struct {
	UserID   int      `json:"user_id"`
	Extended bool     `json:"extended" to:"int"`
	Filter   string   `json:"filter"`
	Fields   []string `json:"fields"`
	Offset   int      `json:"offset"`
	Count    int      `json:"count"`
}

type Gifts

type Gifts struct {
	UserID int `json:"user_id"`
	Count  int `json:"count"`
	Offset int `json:"offset"`
}

type HistoryMessages

type HistoryMessages struct {
	GroupID        int      `json:"group_id"`
	ChatID         int      `json:"peer_id"`
	UserID         int      `json:"user_id"`
	StartMessageID int      `json:"start_message_id"`
	Offset         int      `json:"offset"`
	Count          int      `json:"count"`
	Rev            bool     `json:"rev"`
	Fields         []string `json:"fields"`
}

type Info

type Info struct {
	Fields []string `json:"fields"`
}

type InviteGroup

type InviteGroup struct {
	GroupID int `json:"group_id"`
	UserID  int `json:"user_id"`
}

type IsGroupMember

type IsGroupMember struct {
	GroupID int   `json:"group_id"`
	UserID  int   `json:"user_id"`
	UserIDs []int `json:"user_i_ds"`
}

type JoinGroup

type JoinGroup struct {
	GroupID int    `json:"group_id"`
	NotSure string `json:"not_sure"`
}

type KickUser

type KickUser struct {
	ChatID   int `json:"chat_id"`
	UserID   int `json:"user_id"`
	MemberID int `json:"member_id"`
}

type Message

type Message struct {
	GroupID        int      `json:"group_id"`
	ChatID         int      `json:"chat_id"`
	MessageIDs     []int    `json:"message_ids"`
	ChatMessageIDs []int    `json:"cmids"`
	Fields         []string `json:"fields"`
	Extended       bool     `json:"extended"`
	Characters     int      `json:"characters"`
}

type MutualFriends

type MutualFriends struct {
	SourceUID       int    `json:"source_uid"`
	TargetUIDs      []int  `json:"target_uids"`
	Order           string `json:"order"`
	Count           int    `json:"count"`
	Offset          int    `json:"offset"`
	NeedCommonCount bool   `json:"need_common_count" to:"int"`
}

type OnlineFriends

type OnlineFriends struct {
	UserID int    `json:"user_id"`
	ListID int    `json:"list_id"`
	Order  string `json:"order"`
	Count  int    `json:"count"`
	Offset int    `json:"offset"`
}

type PinMessage

type PinMessage struct {
	ChatID        int `json:"peer_id"`
	MessageID     int `json:"message_id"`
	ChatMessageID int `json:"conversation_message_id"`
}

type RemoveGroupUser

type RemoveGroupUser struct {
	GroupID int `json:"group_id"`
	UserID  int `json:"user_id"`
}
type ReorderGroupLink struct {
	GroupID int `json:"group_id"`
	LinkID  int `json:"link_id"`
	After   int `json:"after"`
}

type ReportUser

type ReportUser struct {
	UserID  int    `json:"user_id"`
	Type    string `json:"type"`
	Comment string `json:"comment"`
}

type SearchFriends

type SearchFriends struct {
	UserID   int    `json:"user_id"`
	Q        string `json:"q"`
	Fields   string `json:"fields"`
	NameCase string `json:"name_case"`
	Offset   int    `json:"offset"`
	Count    int    `json:"count"`
}

type SearchGroup

type SearchGroup struct {
	Q         string `json:"q"`
	Type      string `json:"type"`
	CountryID int    `json:"country_id"`
	CityID    int    `json:"city_id"`
	Future    bool   `json:"future" to:"int"`
	Market    bool   `json:"market" to:"int"`
	Sort      int    `json:"sort"`
	Offset    int    `json:"offset"`
	Count     int    `json:"count"`
}

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 SendMessageEventAnswer struct {
	EventID string `json:"event_id"`
	ChatID  int    `json:"peer_id"`
	UserID  int    `json:"user_id"`
	Action  string `json:"action"`
}

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 SetOnline

type SetOnline struct {
	Calls bool `json:"voip" to:"int"`
}

type SetStatus

type SetStatus struct {
	GroupID int    `json:"group_id"`
	Text    string `json:"text"`
}

type Subscriptions

type Subscriptions struct {
	UserID int      `json:"user_id"`
	Offset int      `json:"offset"`
	Count  int      `json:"count"`
	Fields []string `json:"fields"`
}

type SuggestionsFriends

type SuggestionsFriends struct {
	Filter   string `json:"filter"`
	Count    int    `json:"count"`
	Offset   int    `json:"offset"`
	Fields   string `json:"fields"`
	NameCase string `json:"name_case"`
}

type UnbanUser

type UnbanUser struct {
	GroupID int `json:"group_id"`
	OwnerID int `json:"owner_id"`
}

type UploadFile added in v1.1.0

type UploadFile struct {
	FieldName string
	FileName  string
	Bytes     []byte
}

type UploadMessagesDocumentServer

type UploadMessagesDocumentServer struct {
	ChatID int
	Type   string
}

type UploadMessagesPhotoServer

type UploadMessagesPhotoServer struct {
	ChatID int
}

type User

type User struct {
	UserID   int      `json:"user_ids"`
	UserIDs  []int    `json:"user_ids"` //nolint:govet
	Fields   []string `json:"fields"`
	NameCase string   `json:"name_case"`
}

type UserLongPollServer

type UserLongPollServer struct {
	GroupID int  `json:"group_id"`
	Version int  `json:"lp_version"`
	NeedPTS bool `json:"need_pts"`
}

Jump to

Keyboard shortcuts

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