API

package
v0.0.3-dev Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COMMUNITY_RPS_LIMIT = 20
	USER_RPS_LIMIT      = 3
)

Variables

This section is empty.

Functions

func BooleanToInteger

func BooleanToInteger(property bool) int

func GetRandom

func GetRandom() int

func GetRandomID

func GetRandomID() int

func ReceiveRandom

func ReceiveRandom() int

func ReceiveRandomID

func ReceiveRandomID() int

func TakeRandom

func TakeRandom() int

func TakeRandomID

func TakeRandomID() int

Types

type Addresses

type Addresses struct {
	Enabled   bool `json:"is_enabled"`
	AddressID int  `json:"main_address_id"`
}

type Attachment

type Attachment string

type Attachments

type Attachments []string

type BanInfo

type BanInfo struct {
	EndDate int    `json:"end_date"`
	Comment string `json:"comment"`
}

type BanUser

type BanUser struct {
	GroupID int
	UserID  int
	Time    int
	Reason  int
	Comment CommentBanUser
}

type BannedUser

type BannedUser struct {
	Error   Error        `json:"error"`
	Type    string       `json:"type,omitempty"`
	Info    InfoBanUser  `json:"ban_info,omitempty"`
	Profile ResponseUser `json:"profile,omitempty"`
}

type Bot

type Bot struct {
	ID          int         `json:"id"`
	Token       string      `json:"token"`
	Version     float32     `json:"version"`
	IsGroup     bool        `json:"is_group"`
	Logger      *log.Logger `json:"logger"`
	MessagePack bool
	// contains filtered or unexported fields
}

Bot ✨ is an object that defines the properties of a bot 🏙️ The ID is the unique identifier of the bot. It contains either a community ID or a user page ID 🏡 A token is a key to access your application (bot) ☕ Version - VK API version, it is strongly recommended to set 5.154000 📺 IsGroup is set automatically, guided by the information about the created bot 🧢 Logger is a pointer to the Logger object of the logrus library. Used during development to detect problems during operation 👆 MessagePack a simpler format of response data — https://en.wikipedia.org/wiki/MessagePack 💕 limit - limiting the number of requests per second depending on the type of bot 🌿 The ErrorHandler performs the task of transmitting an error for further processing

func Create

func Create(properties ...any) *Bot

Create 📺 your own bot or add an existing one 🏙️ Accepts arguments: 🎮 String - token 💬 Float32 - version 💗 Pointer or no pointer Bot{} structure 🍭 Pointer or no pointer logrus.Logger{} structure 🍻 Returns a pointer to the Bot structure

func (*Bot) Answer

func (bot *Bot) Answer(properties ...any) ResponseSendMessage

func (*Bot) AnswerEvent

func (bot *Bot) AnswerEvent(properties ...any) ResponseSendEventMessage

func (*Bot) Answers

func (bot *Bot) Answers(properties ...any) ResponseSendMessages

func (*Bot) Ban

func (bot *Bot) Ban(property any) (banned ResponseBan)

func (*Bot) BanUser

func (bot *Bot) BanUser(properties ...any) (banned ResponseBan)

func (*Bot) CallString

func (bot *Bot) CallString(method string, params string, data any) error

CallString 🔥🌅 sends a request to the VKontakte server 🌌❄ The first argument is the name of the method, 🌺🌼🌹 the second is the URL string, 🦋🌹🎲 then usually a pointer to the structure where the response will be written 🌍🌊🐠 May return an error

func (*Bot) ChangeMessage

func (bot *Bot) ChangeMessage(properties ...any) ResponseEditMessage

func (*Bot) CreateChat

func (bot *Bot) CreateChat(properties ...any) ResponseCreateChat

func (*Bot) DeleteMessage

func (bot *Bot) DeleteMessage(properties ...any) ResponseDeleteMessage

func (*Bot) DeleteMessages

func (bot *Bot) DeleteMessages(properties ...any) (destroyed ResponseDeleteMessages)

func (*Bot) DestroyMessage

func (bot *Bot) DestroyMessage(properties ...any) ResponseDeleteMessage

func (*Bot) DestroyMessages

func (bot *Bot) DestroyMessages(properties ...any) ResponseDeleteMessages

func (*Bot) DropMessage

func (bot *Bot) DropMessage(properties ...any) ResponseDeleteMessage

func (*Bot) DropMessages

func (bot *Bot) DropMessages(properties ...any) ResponseDeleteMessages

func (*Bot) EditMessage

func (bot *Bot) EditMessage(properties ...any) (edited ResponseEditMessage)

func (*Bot) Errors

func (bot *Bot) Errors(handler errorHandler) *Bot

func (*Bot) EventAnswer

func (bot *Bot) EventAnswer(properties ...any) ResponseSendEventMessage

func (*Bot) EventMessage

func (bot *Bot) EventMessage(properties ...any) ResponseSendEventMessage

func (*Bot) Execute

func (bot *Bot) Execute(properties ...any) (executed ResponseExecute)

func (*Bot) GetBanned

func (bot *Bot) GetBanned(properties ...any) ResponseBanned

func (*Bot) GetBannedUsers

func (bot *Bot) GetBannedUsers(properties ...any) ResponseBannedUsers

func (*Bot) GetChat

func (bot *Bot) GetChat(properties ...any) ResponseChat
func (bot *Bot) GetChatLink(properties ...any) ResponseChatLink

func (*Bot) GetChatMembers

func (bot *Bot) GetChatMembers(properties ...any) ResponseChatMembers

func (*Bot) GetChats

func (bot *Bot) GetChats(properties ...any) ResponseChats

GetChats gets a list of conversationsByID Possible method arguments: GetChat, developer-created methods whose names correspond to the fields of the GetChat structure, int, []int, []string or bool The integer argument specifies either a chatID, if one is missing, or a groupID An array of integer values specifies a list of all requested chats An array of strings specifies a list of additional user and community fields The Boolean type defines the extended answer, which will contain the Users and Groups field Returns the ResponseChats structure with the fields Count, Error, Chats, Users, Groups

func (*Bot) GetCounters

func (bot *Bot) GetCounters(properties ...any) ResponseCounters

func (*Bot) GetGifts

func (bot *Bot) GetGifts(properties ...any) ResponseGifts

func (*Bot) GetGroup

func (bot *Bot) GetGroup(properties ...any) ResponseGroup

func (*Bot) GetGroupLongPoll

func (bot *Bot) GetGroupLongPoll(property any) ResponseLongPoll

func (*Bot) GetGroupLongPollServer

func (bot *Bot) GetGroupLongPollServer(property any) ResponseLongPoll

func (*Bot) GetGroups

func (bot *Bot) GetGroups(properties ...any) ResponseGroups

func (*Bot) GetHealth

func (bot *Bot) GetHealth() ResponseHealth

func (*Bot) GetHistoryMessages

func (bot *Bot) GetHistoryMessages(properties ...any) ResponseHistoryMessages

func (*Bot) GetInfo

func (bot *Bot) GetInfo(properties ...any) ResponseInfo

func (*Bot) GetMessage

func (bot *Bot) GetMessage(properties ...any) update.Message

func (*Bot) GetMessages

func (bot *Bot) GetMessages(properties ...any) ResponseMessages

func (*Bot) GetOffers

func (bot *Bot) GetOffers(properties ...any) ResponseOffers

func (*Bot) GetServerGroupLongPoll

func (bot *Bot) GetServerGroupLongPoll(property any) ResponseLongPoll

func (*Bot) GetServerUserLongPoll

func (bot *Bot) GetServerUserLongPoll(properties ...any) ResponseLongPoll

func (*Bot) GetStatus

func (bot *Bot) GetStatus(properties ...any) ResponseStatus

func (*Bot) GetUploadMessagesDocumentServer

func (bot *Bot) GetUploadMessagesDocumentServer(properties ...any) ResponseUploadMessagesDocument

func (*Bot) GetUploadMessagesPhotoServer

func (bot *Bot) GetUploadMessagesPhotoServer(property any) ResponseUploadMessagesPhoto

func (*Bot) GetUser

func (bot *Bot) GetUser(properties ...any) ResponseUser

func (*Bot) GetUserLongPoll

func (bot *Bot) GetUserLongPoll(properties ...any) ResponseLongPoll

func (*Bot) GetUserLongPollServer

func (bot *Bot) GetUserLongPollServer(properties ...any) ResponseLongPoll

func (*Bot) GetUsers

func (bot *Bot) GetUsers(properties ...any) ResponseUsers

func (*Bot) GroupLongPoll

func (bot *Bot) GroupLongPoll(property any) ResponseLongPoll

func (*Bot) GroupLongPollServer

func (bot *Bot) GroupLongPollServer(property any) ResponseLongPoll

func (*Bot) GroupLongPollSettings

func (bot *Bot) GroupLongPollSettings(properties ...any) ResponseSetLongPoll

func (*Bot) Health

func (bot *Bot) Health() ResponseHealth

func (*Bot) HistoryMessages

func (bot *Bot) HistoryMessages(properties ...any) ResponseHistoryMessages

func (*Bot) MessageEvent

func (bot *Bot) MessageEvent(properties ...any) ResponseSendEventMessage

func (*Bot) PinMessage

func (bot *Bot) PinMessage(properties ...any) ResponsePinMessage

func (*Bot) ReceiveBanned

func (bot *Bot) ReceiveBanned(properties ...any) ResponseBanned

func (*Bot) ReceiveBannedUsers

func (bot *Bot) ReceiveBannedUsers(properties ...any) ResponseBannedUsers

func (*Bot) ReceiveChat

func (bot *Bot) ReceiveChat(properties ...any) ResponseChat

func (*Bot) ReceiveChats

func (bot *Bot) ReceiveChats(properties ...any) ResponseChats

func (*Bot) ReceiveGroup

func (bot *Bot) ReceiveGroup(properties ...any) ResponseGroup

func (*Bot) ReceiveGroups

func (bot *Bot) ReceiveGroups(properties ...any) ResponseGroups

func (*Bot) ReceiveMessage

func (bot *Bot) ReceiveMessage(properties ...any) update.Message

func (*Bot) ReceiveMessages

func (bot *Bot) ReceiveMessages(properties ...any) ResponseMessages

func (*Bot) ReceiveUser

func (bot *Bot) ReceiveUser(properties ...any) ResponseUser

func (*Bot) ReceiveUsers

func (bot *Bot) ReceiveUsers(properties ...any) ResponseUsers

func (*Bot) RemoveMessage

func (bot *Bot) RemoveMessage(properties ...any) ResponseDeleteMessage

func (*Bot) RemoveMessages

func (bot *Bot) RemoveMessages(properties ...any) ResponseDeleteMessages

func (*Bot) SaveUploadMessagesDocument

func (bot *Bot) SaveUploadMessagesDocument(file, params string) ResponseSaveUploadMessagesDocument

func (*Bot) SaveUploadMessagesPhoto

func (bot *Bot) SaveUploadMessagesPhoto(server int, photo, hash string) ResponseSaveUploadMessagesPhotos

func (*Bot) SendAnswer

func (bot *Bot) SendAnswer(properties ...any) ResponseSendMessage

func (*Bot) SendAnswerEvent

func (bot *Bot) SendAnswerEvent(properties ...any) ResponseSendEventMessage

func (*Bot) SendAnswers

func (bot *Bot) SendAnswers(properties ...any) ResponseSendMessages

func (*Bot) SendError

func (bot *Bot) SendError(error Error) Error

func (*Bot) SendEventAnswer

func (bot *Bot) SendEventAnswer(properties ...any) ResponseSendEventMessage

func (*Bot) SendEventMessage

func (bot *Bot) SendEventMessage(properties ...any) (sent ResponseSendEventMessage)

func (*Bot) SendMessage

func (bot *Bot) SendMessage(properties ...any) ResponseSendMessage

func (*Bot) SendMessageEvent

func (bot *Bot) SendMessageEvent(properties ...any) ResponseSendEventMessage

func (*Bot) SendMessages

func (bot *Bot) SendMessages(properties ...any) (sent ResponseSendMessages)

func (*Bot) SendSticker

func (bot *Bot) SendSticker(chatID, stickerID int, properties ...any) ResponseSendMessage

func (*Bot) SendStickers

func (bot *Bot) SendStickers(chatID, stickerID int, properties ...any) ResponseSendMessages

func (*Bot) SetGroupLongPoll

func (bot *Bot) SetGroupLongPoll(properties ...any) ResponseSetLongPoll

func (*Bot) SetGroupLongPollSettings

func (bot *Bot) SetGroupLongPollSettings(properties ...any) ResponseSetLongPoll

func (*Bot) SetOffline

func (bot *Bot) SetOffline() (offline ResponseConnection)

func (*Bot) SetOnline

func (bot *Bot) SetOnline(properties ...any) (online ResponseConnection)

func (*Bot) SetSettingsGroupLongPoll

func (bot *Bot) SetSettingsGroupLongPoll(properties ...any) (server ResponseSetLongPoll)

func (*Bot) SetStatus

func (bot *Bot) SetStatus(properties ...any) (status ResponseSetStatus)

func (*Bot) SettingsGroupLongPoll

func (bot *Bot) SettingsGroupLongPoll(properties ...any) ResponseSetLongPoll

func (*Bot) Spam

func (bot *Bot) Spam(properties ...any) ResponseDeleteMessage

func (*Bot) Spams

func (bot *Bot) Spams(properties ...any) ResponseDeleteMessages

func (*Bot) Sticker

func (bot *Bot) Sticker(chatID, stickerID int, properties ...any) ResponseSendMessage

func (*Bot) Stickers

func (bot *Bot) Stickers(chatID, stickerID int, properties ...any) ResponseSendMessages

func (*Bot) StringCall

func (bot *Bot) StringCall(method string, params string, data any) error

func (*Bot) TakeBanned

func (bot *Bot) TakeBanned(properties ...any) ResponseBanned

func (*Bot) TakeBannedUsers

func (bot *Bot) TakeBannedUsers(properties ...any) ResponseBannedUsers

func (*Bot) TakeChat

func (bot *Bot) TakeChat(properties ...any) ResponseChat

func (*Bot) TakeChats

func (bot *Bot) TakeChats(properties ...any) ResponseChats

func (*Bot) TakeGroup

func (bot *Bot) TakeGroup(properties ...any) ResponseGroup

func (*Bot) TakeGroups

func (bot *Bot) TakeGroups(properties ...any) ResponseGroups

func (*Bot) TakeMessage

func (bot *Bot) TakeMessage(properties ...any) update.Message

func (*Bot) TakeMessages

func (bot *Bot) TakeMessages(properties ...any) ResponseMessages

func (*Bot) TakeUser

func (bot *Bot) TakeUser(properties ...any) ResponseUser

func (*Bot) TakeUsers

func (bot *Bot) TakeUsers(properties ...any) ResponseUsers

func (*Bot) Unban

func (bot *Bot) Unban(property any) (unbanned ResponseBan)

func (*Bot) UnbanUser

func (bot *Bot) UnbanUser(properties ...any) (unbanned ResponseBan)

func (*Bot) UploadMessagesDocument

func (bot *Bot) UploadMessagesDocument(chatID int, fileURL, extension string, properties ...any) ResponseSaveUploadMessagesDocument

func (*Bot) UploadMessagesDocumentServer

func (bot *Bot) UploadMessagesDocumentServer(properties ...any) ResponseUploadMessagesDocument

func (*Bot) UploadMessagesPhoto

func (bot *Bot) UploadMessagesPhoto(chatID int, fileURL string) ResponseSaveUploadMessagesPhotos

func (*Bot) UploadMessagesPhotoServer

func (bot *Bot) UploadMessagesPhotoServer(property any) ResponseUploadMessagesPhoto

func (*Bot) UserLongPoll

func (bot *Bot) UserLongPoll(properties ...any) ResponseLongPoll

func (*Bot) UserLongPollServer

func (bot *Bot) UserLongPollServer(properties ...any) ResponseLongPoll

type CanWriteChat

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

type Characters

type Characters int

type Chat

type Chat struct {
	ID      int    `json:"id"`
	Type    string `json:"type"`
	LocalID int    `json:"local_id"`
}

type ChatID

type ChatID int

type ChatMembers

type ChatMembers struct {
	MemberID  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 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"`
	Title          string             `json:"title"`
	PinnedMessage  ResponsePinMessage `json:"pinned_message"`
	State          string             `json:"state"`
	Photo          update.PhotoAction `json:"photo"`
	ActivesID      []int              `json:"active_ids"`
	IsGroupChannel bool               `json:"is_group_channel"`
}

type ChatSortID

type ChatSortID struct {
	MajorID int `json:"major_id"`
	MinorID int `json:"minor_id"`
}

type ChatsID

type ChatsID []int

type City

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

type Comment

type Comment string

type CommentBanUser

type CommentBanUser struct {
	Text string
	Show bool
}

type Contact

type Contact struct {
	UserID      int    `json:"user_id"`
	Description string `json:"desc"`
	Phone       string `json:"phone"`
	EMail       string `json:"email"`
}

type Count

type Count int

type Counter

type Counter struct {
	Albums          int `json:"albums"`
	Market          int `json:"market"`
	Photos          int `json:"photos"`
	Topics          int `json:"topics"`
	Articles        int `json:"articles"`
	Narratives      int `json:"narratives"`
	ClassifiedYoula int `json:"classified_youla"`
}

type Country

type Country struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

type Cover

type Cover struct {
	Enabled int     `json:"enabled"`
	Images  []Image `json:"images"`
}

type CreateChat

type CreateChat struct {
	GroupID int
	UserID  int
	UsersID []int
	Name    string
	Title   string
}

type Crop

type Crop struct {
	X  any `json:"x"`
	Y  any `json:"y"`
	X2 any `json:"x2"`
	Y2 any `json:"y2"`
}

type CropPhoto

type CropPhoto struct {
	Photo update.Photo `json:"photo"`
	Crop  Crop         `json:"crop"`
	Rect  Crop         `json:"rect"`
}

type Currency

type Currency struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Symbol string `json:"title"`
}

type DeleteForAll

type DeleteForAll bool

type DeleteMessage

type DeleteMessage struct {
	GroupID        int
	ChatID         int
	MessageID      int
	MessagesID     []int
	ChatMessageID  int
	ChatMessagesID []int
	Spam           bool
	Everyone       bool
}

type DisableMentions

type DisableMentions int

type DocumentSaveUploadMessages

type DocumentSaveUploadMessages struct {
	URL       string `json:"url"`
	Date      int    `json:"date"`
	ID        int    `json:"id"`
	Title     string `json:"title"`
	OwnerID   int    `json:"owner_id"`
	Extension string `json:"ext"`
	Size      int    `json:"size"`
}

type Domain

type Domain string
type DontParseLinks int

type EditMessage

type EditMessage struct {
	GroupID             int
	ChatID              int
	Text                string
	Message             string
	MessageID           int
	ChatMessageID       int
	Attachment          string
	Attachments         []string
	Template            Template
	Keyboard            Keyboard
	KeepForwardMessages bool
	KeepSnippets        bool
	DontParseLinks      bool
	DisableMentions     bool
	Latitude            string
	Longitude           string
}

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"`
	Message string `json:"description"`
}

type ErrorParam

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

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"`
}

type EventID

type EventID string

type Everyone

type Everyone bool

type Execute

type Execute struct {
	Code    any
	Version float32
}

type ExpireTime

type ExpireTime int

type Extended

type Extended bool

type Fields

type Fields []string

type Forward

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

func GetForward

func GetForward(chatID, ID int, isReply bool) Forward

func ReceiveForward

func ReceiveForward(chatID, ID int, isReply bool) Forward

func TakeForward

func TakeForward(chatID, ID int, isReply bool) Forward

type FriendsLike

type FriendsLike struct {
	Count   int `json:"count"`
	Preview any `json:"preview"`
}

type GetBanned

type GetBanned struct {
	Offset int
	Count  int
}

type GetBannedUsers

type GetBannedUsers struct {
	GroupID int
	UserID  int
	Offset  int
	Count   int
	Fields  []string
}

type GetChat

type GetChat struct {
	GroupID  int
	ChatID   int
	ChatsID  []int
	Extended bool
	Fields   []string
}
type GetChatLink struct {
	GroupID int
	ChatID  int
	Reset   bool
}

type GetChatMembers

type GetChatMembers struct {
	GroupID  int
	ChatID   int
	Offset   int
	Count    int
	Extended bool
	Fields   []string
}

type GetCounters

type GetCounters struct{}

type GetGifts

type GetGifts struct {
	UserID int
	Count  int
	Offset int
}

type GetGroup

type GetGroup struct {
	GroupID  int
	GroupsID []int
	Fields   []string
}

type GetGroupLongPoll

type GetGroupLongPoll struct {
	GroupID int
}

type GetHistoryMessages

type GetHistoryMessages struct {
	GroupID        int
	ChatID         int
	UserID         int
	StartMessageID int
	Offset         int
	Count          int
	Rev            bool // In reverse order. If set to 1, the messages will be sent starting from the first one, otherwise starting from the last one sent.
	Extended       bool // In addition to the Items fields, the Users (profiles), Chats (conversations in the method) and Contacts fields will be available. 02.06.2023 12:00 MSK - set by default to make room for Rev type bool: Rev(true) / true ")
	Fields         []string
}

type GetInfo

type GetInfo struct {
	Fields []string
}

type GetMessage

type GetMessage struct {
	GroupID        int
	ChatID         int
	MessageID      int
	MessagesID     []int
	ChatMessageID  int
	ChatMessagesID []int
	Fields         []string
	Extended       bool
	Characters     int
}

type GetOffers

type GetOffers struct {
	Count  int
	Offset int
}

type GetStatus

type GetStatus struct {
	GroupID int
	OwnerID int
}

type GetUploadMessagesDocumentServer

type GetUploadMessagesDocumentServer struct {
	ChatID int
	Type   string
}

type GetUploadMessagesPhotoServer

type GetUploadMessagesPhotoServer struct {
	ChatID int
}

type GetUser

type GetUser struct {
	UserID   int
	UsersID  []int
	NameCase string
	Fields   []string
}

type GetUserLongPoll

type GetUserLongPoll struct {
	GroupID int
	Version int
	NeedPTS bool
}

type Gift

type Gift struct {
	ID      int      `json:"id"`
	UserID  int      `json:"from_id"`
	Message string   `json:"message"`
	Date    int      `json:"date"`
	Gift    GiftInfo `json:"gift"`
	Privacy int      `json:"privacy"`
}

type GiftInfo

type GiftInfo struct {
	ID       int    `json:"id"`
	Photo48  string `json:"thumb_48"`
	Photo96  string `json:"thumb_96"`
	Photo256 string `json:"thumb_256"`
}

type GroupID

type GroupID int

type GroupsID

type GroupsID []int

type Image

type Image struct {
	URL    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

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 int

type KeepSnippets

type KeepSnippets int

type Keyboard

type Keyboard any

type Latitude

type Latitude string

type Like

type Like struct {
	Liked   bool        `json:"is_liked"`
	Friends FriendsLike `json:"friends"`
}
type Link struct {
	ID          int    `json:"id"`
	URL         string `json:"url"`
	Name        string `json:"name"`
	Description string `json:"desc"`
	Photo50     string `json:"photo_50"`
	Photo100    string `json:"photo_100"`
}

type Longitude

type Longitude string

type Market

type Market struct {
	Type                     string   `json:"type"`
	ContactID                int      `json:"contact_id"`
	Currency                 Currency `json:"currency"`
	Symbol                   string   `json:"currency_text"`
	IsShowHeaderItemsLink    int      `json:"is_show_header_items_link"`
	Enabled                  int      `json:"enabled"`
	PriceMax                 string   `json:"price_max"`
	PriceMin                 string   `json:"price_min"`
	UnViewedOrdersCount      int      `json:"unviewed_orders_count"`
	CommunityManageEnabled   int      `json:"is_community_manage_enabled"`
	HasNotInMarketTab        bool     `json:"has_not_in_market_tab"`
	HasModerationRejectedTab bool     `json:"has_moderation_rejected_tab"`
}

type Message

type Message string

type MessageID

type MessageID int

type MessagesFolder

type MessagesFolder struct {
	ID      int `json:"folder_id"`
	Count   int `json:"total_count"`
	UnMuted int `json:"unmuted_count"`
}

type MessagesID

type MessagesID []int

type Name

type Name string

type NameCase

type NameCase string

type NeedPTS

type NeedPTS bool

type Offset

type Offset int

type OwnerID

type OwnerID int

type OwnersID

type OwnersID []int

type Payload

type Payload string

type PinMessage

type PinMessage struct {
	ChatID        int
	MessageID     int
	ChatMessageID int
}

type Place

type Place struct {
	ID        int    `json:"id"`
	Title     string `json:"title"`
	Latitude  int    `json:"latitude"`
	Longitude int    `json:"longitude"`
	Type      string `json:"type"`
	Country   int    `json:"country"`
	City      int    `json:"city"`
	Address   string `json:"address"`
}

type PushSettings

type PushSettings struct {
	UntilDisabled   int `json:"disabled_until"`
	ForeverDisabled int `json:"disabled_forever"`
	Sound           int `json:"sound"`
	NoSound         int `json:"no_sound"`
}

type RandomID

type RandomID int

type Reason

type Reason int

type ReplyBanned

type ReplyBanned struct {
	Error    Error          `json:"error"`
	Response ResponseBanned `json:"response"`
}

type ReplyBannedUsers

type ReplyBannedUsers struct {
	Error    Error               `json:"error"`
	Response ResponseBannedUsers `json:"response"`
}
type ReplyChatLink struct {
	Response ResponseChatLink ` json:"response,omitempty"`
	Error    Error            ` json:"error,omitempty"`
}

type ReplyChatMembers

type ReplyChatMembers struct {
	Error    Error               `json:"error,omitempty"`
	Response ResponseChatMembers `json:"response,omitempty"`
}

type ReplyChats

type ReplyChats struct {
	Error    Error         ` json:"error,omitempty"`
	Response ResponseChats ` json:"response,omitempty"`
}

type ReplyCounters

type ReplyCounters struct {
	Error    Error            `json:"error"`
	Response ResponseCounters `json:"response"`
}

type ReplyCreateChat

type ReplyCreateChat struct {
	Error    Error              ` json:"error"`
	Response ResponseCreateChat ` json:"response"`
}

type ReplyGetStatus

type ReplyGetStatus struct {
	Error    Error          `json:"error"`
	Response ResponseStatus `json:"response"`
}

type ReplyGifts

type ReplyGifts struct {
	Error    Error         `json:"error"`
	Response ResponseGifts `json:"response"`
}

type ReplyGroups

type ReplyGroups struct {
	Error    Error          `json:"error"`
	Response ResponseGroups `json:"response"`
}

type ReplyHealth

type ReplyHealth struct {
	Error    Error          `json:"error"`
	Response ResponseHealth `json:"response"`
}

type ReplyHistoryMessages

type ReplyHistoryMessages struct {
	Error    Error                   `json:"error"`
	Response ResponseHistoryMessages `json:"response"`
}

type ReplyInfo

type ReplyInfo struct {
	Error    Error        `json:"error"`
	Response ResponseInfo `json:"response"`
}

type ReplyLongPoll

type ReplyLongPoll struct {
	Error    Error            `json:"error"`
	Response ResponseLongPoll `json:"response"`
}

type ReplyMessages

type ReplyMessages struct {
	Error    Error            `json:"error"`
	Response ResponseMessages `json:"response"`
}

type ReplyOffers

type ReplyOffers struct {
	Error    Error          `json:"error"`
	Response ResponseOffers `json:"response"`
}

type ReplyPinMessage

type ReplyPinMessage struct {
	Error    Error              `json:"error"`
	Response ResponsePinMessage `json:"response"`
}

type ReplyUploadMessagesDocumentServer

type ReplyUploadMessagesDocumentServer struct {
	Error    Error                          `json:"error"`
	Response ResponseUploadMessagesDocument `json:"response"`
}

type ReplyUploadMessagesPhotoServer

type ReplyUploadMessagesPhotoServer struct {
	Error    Error                       `json:"error"`
	Response ResponseUploadMessagesPhoto `json:"response"`
}

type ReplyUsers

type ReplyUsers struct {
	Error    Error          `json:"error"`
	Response []ResponseUser `json:"response"`
}

type RequestUploadMessagesDocument

type RequestUploadMessagesDocument struct {
	File string `json:"file"`
}

type RequestUploadMessagesPhoto

type RequestUploadMessagesPhoto struct {
	Server int    `json:"server"`
	Photo  string `json:"photo"`
	Hash   string `json:"hash"`
}

type Reset

type Reset bool

type ResponseBan

type ResponseBan struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseBanned

type ResponseBanned struct {
	Error Error          `json:"error"`
	Count int            `json:"count"`
	Bans  []int          `json:"items"`
	Users []ResponseUser `json:"profiles"`
}

type ResponseBannedUsers

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

type ResponseChat

type ResponseChat struct {
	Error                Error        `json:"error"`
	Chat                 Chat         `json:"peer"`
	InRead               int          `json:"in_read"`
	OutRead              int          `json:"out_read"`
	UnreadCount          int          `json:"unread_count"`
	Important            bool         `json:"important"`
	Unanswered           bool         `json:"unanswered"`
	PushSettings         PushSettings `json:"push_settings"`
	CanWrite             CanWriteChat `json:"can_write"`
	ChatSettings         ChatSettings `json:"chat_settings"`
	SortID               ChatSortID   `json:"sort_id"`
	LastMessageID        int          `json:"last_message_id"`
	LastChatMessageID    int          `json:"last_conversation_message_id"`
	InReadChatMessageID  int          `json:"in_read_cmid"`
	OutReadChatMessageID int          `json:"out_read_cmid"`
	MarkedUnread         bool         `json:"is_marked_unread"`
	CanSendMoney         bool         `json:"can_send_money"`
	CanReceiveMoney      bool         `json:"can_receive_money"`
}
type ResponseChatLink struct {
	Error Error  `json:"error"`
	Link  string `json:"link"`
}

type ResponseChatMembers

type ResponseChatMembers struct {
	Error    Error            `json:"error,omitempty"`
	Count    int              `json:"count,omitempty"`
	Settings ChatRestrictions `json:"chat_restrictions,omitempty"` // вот это ваще тема
	Members  []ChatMembers    `json:"items,omitempty"`
	Users    []ResponseUser   `json:"profiles,omitempty"`
	Groups   []ResponseGroup  `json:"groups,omitempty"`
}

type ResponseChats

type ResponseChats struct {
	Error  Error           `json:"error"`
	Count  int             `json:"count"`
	Chats  []ResponseChat  `json:"items"`
	Users  []ResponseUser  `json:"profiles"`
	Groups []ResponseGroup `json:"groups,omitempty"`
}

type ResponseConnection

type ResponseConnection struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseContact

type ResponseContact struct {
	ID             int    `json:"id"`
	Name           string `json:"name"`
	Phone          string `json:"phone"`
	CanWrite       bool   `json:"can_write"`
	UserID         int    `json:"user_id"`
	LastSeenStatus int    `json:"last_seen_status"`
	Photo50        int    `json:"photo_50"`
	CallsID        int    `json:"calls_id"`
}

type ResponseCounters

type ResponseCounters struct {
	Error                Error            `json:"error"`
	AppRequests          int              `json:"app_requests"`
	Faves                int              `json:"faves"`
	DiscoverBadge        int              `json:"menu_discover_badge"`
	ClipsBadge           int              `json:"menu_clips_badge"`
	SuperAppFriendsBadge int              `json:"menu_superapp_friends_badge"`
	NewClipsBadge        int              `json:"menu_new_clips_badge"`
	Messages             int              `json:"messages"`
	SDK                  int              `json:"sdk"`
	Calls                int              `json:"calls"`
	MessagesFolders      []MessagesFolder `json:"messages_folders"`
}

type ResponseCreateChat

type ResponseCreateChat struct {
	Error  Error `json:"error"`
	ChatID int   `json:"chat_id"`
	Users  []int `json:"peer_ids"`
}

type ResponseDeleteMessage

type ResponseDeleteMessage struct {
	Error         ErrorDeleteMessage `json:"error"`
	ChatID        int                `json:"peer_id"`
	MessageID     int                `json:"message_id"`
	ChatMessageID int                `json:"conversation_message_id"`
	Response      int                `json:"response"`
}

type ResponseDeleteMessages

type ResponseDeleteMessages struct {
	Error    Error                   `json:"error"`
	Messages []ResponseDeleteMessage `json:"response"`
}

type ResponseEditMessage

type ResponseEditMessage struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseExecute

type ResponseExecute struct {
	Error  Error          `json:"error"`
	Result map[string]any `json:"response"`
}

type ResponseGifts

type ResponseGifts struct {
	Error Error  `json:"error"`
	Count int    `json:"count"`
	Gifts []Gift `json:"items"`
}

type ResponseGroup

type ResponseGroup struct {
	Error            Error            `json:"error"`
	ID               int              `json:"id"`
	Name             string           `json:"name"`
	Domain           string           `json:"screen_name"`
	Closed           int              `json:"is_closed"`
	Deactivated      string           `json:"deactivated"`
	IsAdmin          int              `json:"is_admin"`
	AdminLevel       int              `json:"admin_level"`
	IsMember         int              `json:"is_member"`
	IsAdvertiser     int              `json:"is_advertiser"`
	InvitedBy        int              `json:"invited_by"`
	Type             string           `json:"type"`
	Photo50          string           `json:"photo_50"`
	Photo100         string           `json:"photo_100"`
	Photo200         string           `json:"photo_200"`
	Activity         string           `json:"activity"`
	Addresses        Addresses        `json:"addresses"`
	Like             Like             `json:"like"`
	AgeLimits        int              `json:"age_limits"`
	BanInfo          BanInfo          `json:"ban_info"`
	CanCreateTopic   int              `json:"can_create_topic"`
	CanMessage       int              `json:"can_message"`
	CanPost          int              `json:"can_post"`
	CanSuggest       int              `json:"can_suggest"`
	CanSeePosts      int              `json:"can_see_all_posts"`
	CanUploadDoc     int              `json:"can_upload_doc"`
	CanUploadStory   int              `json:"can_upload_story"`
	CanUploadVideo   int              `json:"can_upload_video"`
	City             City             `json:"city"`
	Contacts         []Contact        `json:"contacts"`
	Counters         ResponseCounters `json:"counters"`
	Country          Country          `json:"country"`
	Cover            Cover            `json:"cover"`
	CropPhoto        CropPhoto        `json:"crop_photo"`
	Description      string           `json:"description"`
	PinnedPost       int              `json:"fixed_post"`
	HasPhoto         int              `json:"has_photo"`
	IsFavorite       int              `json:"is_favorite"`
	IsHiddenFromFeed int              `json:"is_hidden_from_feed"`
	MessagesBlocked  int              `json:"is_messages_blocked"`
	Links            []Link           `json:"links"`
	AlbumID          int              `json:"main_album_id"`
	Section          int              `json:"main_section"`
	Market           Market           `json:"market"`
	MemberStatus     int              `json:"member_status"`
	MembersCount     int              `json:"members_count"`
	Place            Place            `json:"place"`
	PublicDate       string           `json:"public_date_label"`
	Site             string           `json:"site"`
	StartDate        string           `json:"start_date"`
	FinishDate       string           `json:"finish_date"`
	Status           string           `json:"status"`
	Trending         int              `json:"trending"`
	Verified         int              `json:"verified"`
	Wall             int              `json:"wall"`
	WikiPage         string           `json:"wiki_page"`
}

type ResponseGroups

type ResponseGroups struct {
	Error  Error           `json:"error"`
	Groups []ResponseGroup `json:"groups"`
}

func (ResponseGroups) Group

func (groups ResponseGroups) Group() ResponseGroup

type ResponseHealth

type ResponseHealth struct {
	Error    Error          `json:"error"`
	Statuses []StatusHealth `json:"health_statuses"`
}

func (ResponseHealth) Status

func (health ResponseHealth) Status(category string) StatusHealth

type ResponseHistoryMessages

type ResponseHistoryMessages struct {
	Error    Error             `json:"error"`
	Count    int               `json:"count"`
	Messages []update.Message  `json:"items"`
	Users    []ResponseUser    `json:"profiles"`
	Chats    []ResponseChat    `json:"conversations"`
	Contacts []ResponseContact `json:"contacts"`
}

type ResponseInfo

type ResponseInfo struct {
	Error     Error  `json:"error"`
	TwoFactor int    `json:"2fa_required"`
	Country   string `json:"country"`
	Secure    int    `json:"https_required"`

	Intro             int               `json:"intro"`
	CommunityComments bool              `json:"community_comments"`
	LinkRedirects     map[string]string `json:"link_redirects"`
	Language          int               `json:"lang"`
	NoWallReplies     int               `json:"no_wall_replies"`
	OwnerPosts        int               `json:"own_posts_default"`

	VKPayEndpoint string   `json:"vk_pay_endpoint_v2"`
	Translation   []string `json:"messages_translation_language_pairs"`
	ObsceneFilter bool     `json:"obscene_text_filter"`
}

type ResponseLongPoll

type ResponseLongPoll struct {
	Error   Error  `json:"error"`
	Server  string `json:"server"`
	Key     string `json:"key"`
	TS      any    `json:"ts"`
	PTS     any    `json:"pts,omitempty"`
	Version int    `json:"version"`
}

type ResponseMessages

type ResponseMessages struct {
	Error    Error            `json:"error"`
	Count    int              `json:"count"`
	Messages []update.Message `json:"items"`
	Profiles []ResponseUser   `json:"profiles"`
	Groups   []ResponseGroup  `json:"groups"`
}

func (ResponseMessages) Message

func (messages ResponseMessages) Message() update.Message

type ResponseOffers

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

type ResponsePinMessage

type ResponsePinMessage struct {
	Error       Error               `json:"error"`
	ID          int                 `json:"id"`
	Date        int                 `json:"date"`
	UserID      int                 `json:"from_id"`
	Text        string              `json:"text"`
	Attachments []update.Attachment `json:"attachments"`
	Geolocation update.Geolocation  `json:"geo"`
	Forwards    []string            `json:"fwd_messages"`
}

type ResponseSaveUploadMessagesDocument

type ResponseSaveUploadMessagesDocument struct {
	Error    Error                      `json:"error"`
	Type     string                     `json:"type"`
	Document DocumentSaveUploadMessages `json:"doc"`
}

type ResponseSaveUploadMessagesPhoto

type ResponseSaveUploadMessagesPhoto struct {
	Date      int    `json:"date"`
	ID        int    `json:"id"`
	AlbumID   int    `json:"album_id"`
	OwnerID   int    `json:"owner_id"`
	AccessKey string `json:"access_key"`
}

type ResponseSaveUploadMessagesPhotos

type ResponseSaveUploadMessagesPhotos struct {
	Error  Error `json:"error"`
	Photos []ResponseSaveUploadMessagesPhoto
}

type ResponseSendEventMessage

type ResponseSendEventMessage struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseSendMessage

type ResponseSendMessage struct {
	Error         Error `json:"error"`
	UserID        int   `json:"user_id"`
	ChatID        int   `json:"peer_id"`
	MessageID     int   `json:"message_id"`
	ChatMessageID int   `json:"conversation_message_id"`
}

type ResponseSendMessages

type ResponseSendMessages struct {
	Error    Error                 `json:"error"`
	Messages []ResponseSendMessage `json:"response"`
}

func (ResponseSendMessages) Message

func (messages ResponseSendMessages) Message() ResponseSendMessage

type ResponseSetLongPoll

type ResponseSetLongPoll struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseSetStatus

type ResponseSetStatus struct {
	Error Error `json:"error"`
	Code  int   `json:"response"`
}

type ResponseStatus

type ResponseStatus struct {
	Error Error  `json:"error"`
	Text  string `json:"text"`
}

type ResponseUploadMessagesDocument

type ResponseUploadMessagesDocument struct {
	Bot       *Bot   `json:"bot"`
	Error     Error  `json:"error"`
	UploadURL string `json:"upload_url"`
}

func (ResponseUploadMessagesDocument) Save

func (server ResponseUploadMessagesDocument) Save(fileURL, extension string, properties ...any) ResponseSaveUploadMessagesDocument

type ResponseUploadMessagesPhoto

type ResponseUploadMessagesPhoto struct {
	Bot       *Bot   `json:"bot"`
	Error     Error  `json:"error"`
	AlbumID   int    `json:"album_id"`
	UserID    int    `json:"user_id"`
	UploadURL string `json:"upload_url"`
}

func (ResponseUploadMessagesPhoto) Save

type ResponseUser

type ResponseUser struct {
	Error                Error            `json:"error"`
	ID                   int              `json:"id"`
	Name                 string           `json:"first_name"`
	Surname              string           `json:"last_name"`
	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 ResponseUsers

type ResponseUsers struct {
	Error Error          `json:"error"`
	Users []ResponseUser `json:"response,omitempty"`
}

func (ResponseUsers) User

func (users ResponseUsers) User() ResponseUser

type Rev

type Rev bool

type SaveMessagesDocument

type SaveMessagesDocument struct {
	Title string
	Tags  string
}

type SendEventMessage

type SendEventMessage struct {
	EventID string
	ChatID  int
	UserID  int
	Action  any
}

type SendMessage

type SendMessage struct {
	GroupID         int
	RandomID        int
	Domain          string
	ChatID          int
	ChatsID         []int
	UserID          int
	UsersID         []int
	Text            string
	Message         string
	Attachment      string
	Attachments     []string
	StickerID       int
	Payload         string
	Forward         Forward
	Template        any
	Keyboard        any
	DontParseLinks  bool
	DisableMentions bool
	Latitude        string
	Longitude       string
	Intent          string
	SubscribeID     int
	ExpireTime      int
}

type SetGroupLongPoll

type SetGroupLongPoll struct {
	GroupID int
	Enabled bool
	Version float32

	Message        bool
	ReplyMessage   bool
	EditMessage    bool
	EnableMessage  bool
	DisableMessage bool
	Typing         bool
	Callback       bool

	Photo               bool
	PhotoComment        bool
	EditPhotoComment    bool
	DeletePhotoComment  bool
	RestorePhotoComment bool

	Audio bool

	Video               bool
	VideoComment        bool
	EditVideoComment    bool
	DeleteVideoComment  bool
	RestoreVideoComment bool

	Post             bool
	Repost           bool
	ReplyPost        bool
	EditReplyPost    bool
	DeleteReplyPost  bool
	RestoreReplyPost bool

	BlockUser   bool
	UnblockUser bool

	Like   bool
	Unlike bool

	BoardPost        bool
	EditBoardPost    bool
	DeleteBoardPost  bool
	RestoreBoardPost bool

	MarketComment        bool
	EditMarketComment    bool
	DeleteMarketComment  bool
	RestoreMarketComment bool

	JoinGroup  bool
	LeaveGroup bool

	Vote bool

	EditOwners          bool
	ChangeGroupSettings bool
	ChangeGroupPhoto    bool

	Donate             bool
	ProlongedDonate    bool
	ExpiredDonate      bool
	CancelDonate       bool
	ChangeDonatePrice  bool
	WithdrawMoney      bool
	WithdrawMoneyError bool
}

type SetOnline

type SetOnline struct {
	Calls bool
}

type SetStatus

type SetStatus struct {
	GroupID int
	Text    string
}

type ShowComment

type ShowComment bool

type Spam

type Spam bool

type StartMessageID

type StartMessageID int

type StatusHealth

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

type StickerID

type StickerID int

type SubscribeID

type SubscribeID int

type Template

type Template any

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 UnbanUser

type UnbanUser struct {
	GroupID int
	UserID  int
}

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 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