Documentation ¶
Index ¶
- Constants
- func BooleanToInteger(property bool) int
- func GetRandom() int
- func GetRandomID() int
- func ReceiveRandom() int
- func ReceiveRandomID() int
- func TakeRandom() int
- func TakeRandomID() int
- type Addresses
- type Attachment
- type Attachments
- type BanInfo
- type BanUser
- type BannedUser
- type Bot
- func (bot *Bot) Answer(properties ...any) ResponseSendMessage
- func (bot *Bot) AnswerEvent(properties ...any) ResponseSendEventMessage
- func (bot *Bot) Answers(properties ...any) ResponseSendMessages
- func (bot *Bot) Ban(property any) (banned ResponseBan)
- func (bot *Bot) BanUser(properties ...any) (banned ResponseBan)
- func (bot *Bot) CallString(method string, params string, data any) error
- func (bot *Bot) ChangeMessage(properties ...any) ResponseEditMessage
- func (bot *Bot) CreateChat(properties ...any) ResponseCreateChat
- func (bot *Bot) DeleteMessage(properties ...any) ResponseDeleteMessage
- func (bot *Bot) DeleteMessages(properties ...any) (destroyed ResponseDeleteMessages)
- func (bot *Bot) DestroyMessage(properties ...any) ResponseDeleteMessage
- func (bot *Bot) DestroyMessages(properties ...any) ResponseDeleteMessages
- func (bot *Bot) DropMessage(properties ...any) ResponseDeleteMessage
- func (bot *Bot) DropMessages(properties ...any) ResponseDeleteMessages
- func (bot *Bot) EditMessage(properties ...any) (edited ResponseEditMessage)
- func (bot *Bot) Errors(handler errorHandler) *Bot
- func (bot *Bot) EventAnswer(properties ...any) ResponseSendEventMessage
- func (bot *Bot) EventMessage(properties ...any) ResponseSendEventMessage
- func (bot *Bot) Execute(properties ...any) (executed ResponseExecute)
- func (bot *Bot) GetBanned(properties ...any) ResponseBanned
- func (bot *Bot) GetBannedUsers(properties ...any) ResponseBannedUsers
- func (bot *Bot) GetChat(properties ...any) ResponseChat
- func (bot *Bot) GetChatLink(properties ...any) ResponseChatLink
- func (bot *Bot) GetChatMembers(properties ...any) ResponseChatMembers
- func (bot *Bot) GetChats(properties ...any) ResponseChats
- func (bot *Bot) GetCounters(properties ...any) ResponseCounters
- func (bot *Bot) GetGifts(properties ...any) ResponseGifts
- func (bot *Bot) GetGroup(properties ...any) ResponseGroup
- func (bot *Bot) GetGroupLongPoll(property any) ResponseLongPoll
- func (bot *Bot) GetGroupLongPollServer(property any) ResponseLongPoll
- func (bot *Bot) GetGroups(properties ...any) ResponseGroups
- func (bot *Bot) GetHealth() ResponseHealth
- func (bot *Bot) GetHistoryMessages(properties ...any) ResponseHistoryMessages
- func (bot *Bot) GetInfo(properties ...any) ResponseInfo
- func (bot *Bot) GetMessage(properties ...any) update.Message
- func (bot *Bot) GetMessages(properties ...any) ResponseMessages
- func (bot *Bot) GetOffers(properties ...any) ResponseOffers
- func (bot *Bot) GetServerGroupLongPoll(property any) ResponseLongPoll
- func (bot *Bot) GetServerUserLongPoll(properties ...any) ResponseLongPoll
- func (bot *Bot) GetStatus(properties ...any) ResponseStatus
- func (bot *Bot) GetUploadMessagesDocumentServer(properties ...any) ResponseUploadMessagesDocument
- func (bot *Bot) GetUploadMessagesPhotoServer(property any) ResponseUploadMessagesPhoto
- func (bot *Bot) GetUser(properties ...any) ResponseUser
- func (bot *Bot) GetUserLongPoll(properties ...any) ResponseLongPoll
- func (bot *Bot) GetUserLongPollServer(properties ...any) ResponseLongPoll
- func (bot *Bot) GetUsers(properties ...any) ResponseUsers
- func (bot *Bot) GroupLongPoll(property any) ResponseLongPoll
- func (bot *Bot) GroupLongPollServer(property any) ResponseLongPoll
- func (bot *Bot) GroupLongPollSettings(properties ...any) ResponseSetLongPoll
- func (bot *Bot) Health() ResponseHealth
- func (bot *Bot) HistoryMessages(properties ...any) ResponseHistoryMessages
- func (bot *Bot) MessageEvent(properties ...any) ResponseSendEventMessage
- func (bot *Bot) PinMessage(properties ...any) ResponsePinMessage
- func (bot *Bot) ReceiveBanned(properties ...any) ResponseBanned
- func (bot *Bot) ReceiveBannedUsers(properties ...any) ResponseBannedUsers
- func (bot *Bot) ReceiveChat(properties ...any) ResponseChat
- func (bot *Bot) ReceiveChats(properties ...any) ResponseChats
- func (bot *Bot) ReceiveGroup(properties ...any) ResponseGroup
- func (bot *Bot) ReceiveGroups(properties ...any) ResponseGroups
- func (bot *Bot) ReceiveMessage(properties ...any) update.Message
- func (bot *Bot) ReceiveMessages(properties ...any) ResponseMessages
- func (bot *Bot) ReceiveUser(properties ...any) ResponseUser
- func (bot *Bot) ReceiveUsers(properties ...any) ResponseUsers
- func (bot *Bot) RemoveMessage(properties ...any) ResponseDeleteMessage
- func (bot *Bot) RemoveMessages(properties ...any) ResponseDeleteMessages
- func (bot *Bot) SaveUploadMessagesDocument(file, params string) ResponseSaveUploadMessagesDocument
- func (bot *Bot) SaveUploadMessagesPhoto(server int, photo, hash string) ResponseSaveUploadMessagesPhotos
- func (bot *Bot) SendAnswer(properties ...any) ResponseSendMessage
- func (bot *Bot) SendAnswerEvent(properties ...any) ResponseSendEventMessage
- func (bot *Bot) SendAnswers(properties ...any) ResponseSendMessages
- func (bot *Bot) SendError(error Error) Error
- func (bot *Bot) SendEventAnswer(properties ...any) ResponseSendEventMessage
- func (bot *Bot) SendEventMessage(properties ...any) (sent ResponseSendEventMessage)
- func (bot *Bot) SendMessage(properties ...any) ResponseSendMessage
- func (bot *Bot) SendMessageEvent(properties ...any) ResponseSendEventMessage
- func (bot *Bot) SendMessages(properties ...any) (sent ResponseSendMessages)
- func (bot *Bot) SendSticker(chatID, stickerID int, properties ...any) ResponseSendMessage
- func (bot *Bot) SendStickers(chatID, stickerID int, properties ...any) ResponseSendMessages
- func (bot *Bot) SetGroupLongPoll(properties ...any) ResponseSetLongPoll
- func (bot *Bot) SetGroupLongPollSettings(properties ...any) ResponseSetLongPoll
- func (bot *Bot) SetOffline() (offline ResponseConnection)
- func (bot *Bot) SetOnline(properties ...any) (online ResponseConnection)
- func (bot *Bot) SetSettingsGroupLongPoll(properties ...any) (server ResponseSetLongPoll)
- func (bot *Bot) SetStatus(properties ...any) (status ResponseSetStatus)
- func (bot *Bot) SettingsGroupLongPoll(properties ...any) ResponseSetLongPoll
- func (bot *Bot) Spam(properties ...any) ResponseDeleteMessage
- func (bot *Bot) Spams(properties ...any) ResponseDeleteMessages
- func (bot *Bot) Sticker(chatID, stickerID int, properties ...any) ResponseSendMessage
- func (bot *Bot) Stickers(chatID, stickerID int, properties ...any) ResponseSendMessages
- func (bot *Bot) StringCall(method string, params string, data any) error
- func (bot *Bot) TakeBanned(properties ...any) ResponseBanned
- func (bot *Bot) TakeBannedUsers(properties ...any) ResponseBannedUsers
- func (bot *Bot) TakeChat(properties ...any) ResponseChat
- func (bot *Bot) TakeChats(properties ...any) ResponseChats
- func (bot *Bot) TakeGroup(properties ...any) ResponseGroup
- func (bot *Bot) TakeGroups(properties ...any) ResponseGroups
- func (bot *Bot) TakeMessage(properties ...any) update.Message
- func (bot *Bot) TakeMessages(properties ...any) ResponseMessages
- func (bot *Bot) TakeUser(properties ...any) ResponseUser
- func (bot *Bot) TakeUsers(properties ...any) ResponseUsers
- func (bot *Bot) Unban(property any) (unbanned ResponseBan)
- func (bot *Bot) UnbanUser(properties ...any) (unbanned ResponseBan)
- func (bot *Bot) UploadMessagesDocument(chatID int, fileURL, extension string, properties ...any) ResponseSaveUploadMessagesDocument
- func (bot *Bot) UploadMessagesDocumentServer(properties ...any) ResponseUploadMessagesDocument
- func (bot *Bot) UploadMessagesPhoto(chatID int, fileURL string) ResponseSaveUploadMessagesPhotos
- func (bot *Bot) UploadMessagesPhotoServer(property any) ResponseUploadMessagesPhoto
- func (bot *Bot) UserLongPoll(properties ...any) ResponseLongPoll
- func (bot *Bot) UserLongPollServer(properties ...any) ResponseLongPoll
- type CanWriteChat
- type Characters
- type Chat
- type ChatID
- type ChatMembers
- type ChatMessageID
- type ChatMessagesID
- type ChatRestrictions
- type ChatSettings
- type ChatSortID
- type ChatsID
- type City
- type Comment
- type CommentBanUser
- type Contact
- type Count
- type Counter
- type Country
- type Cover
- type CreateChat
- type Crop
- type CropPhoto
- type Currency
- type DeleteForAll
- type DeleteMessage
- type DisableMentions
- type DocumentSaveUploadMessages
- type Domain
- type DontParseLinks
- type EditMessage
- type Error
- type ErrorDeleteMessage
- type ErrorParam
- type EventAction
- type EventID
- type Everyone
- type Execute
- type ExpireTime
- type Extended
- type Fields
- type Forward
- type FriendsLike
- type GetBanned
- type GetBannedUsers
- type GetChat
- type GetChatLink
- type GetChatMembers
- type GetCounters
- type GetGifts
- type GetGroup
- type GetGroupLongPoll
- type GetHistoryMessages
- type GetInfo
- type GetMessage
- type GetOffers
- type GetStatus
- type GetUploadMessagesDocumentServer
- type GetUploadMessagesPhotoServer
- type GetUser
- type GetUserLongPoll
- type Gift
- type GiftInfo
- type GroupID
- type GroupsID
- type Image
- type InfoBanUser
- type Intent
- type KeepForwardMessages
- type KeepSnippets
- type Keyboard
- type Latitude
- type Like
- type Link
- type Longitude
- type Market
- type Message
- type MessageID
- type MessagesFolder
- type MessagesID
- type Name
- type NameCase
- type NeedPTS
- type Offset
- type OwnerID
- type OwnersID
- type Payload
- type PinMessage
- type Place
- type PushSettings
- type RandomID
- type Reason
- type ReplyBanned
- type ReplyBannedUsers
- type ReplyChatLink
- type ReplyChatMembers
- type ReplyChats
- type ReplyCounters
- type ReplyCreateChat
- type ReplyGetStatus
- type ReplyGifts
- type ReplyGroups
- type ReplyHealth
- type ReplyHistoryMessages
- type ReplyInfo
- type ReplyLongPoll
- type ReplyMessages
- type ReplyOffers
- type ReplyPinMessage
- type ReplyUploadMessagesDocumentServer
- type ReplyUploadMessagesPhotoServer
- type ReplyUsers
- type RequestUploadMessagesDocument
- type RequestUploadMessagesPhoto
- type Reset
- type ResponseBan
- type ResponseBanned
- type ResponseBannedUsers
- type ResponseChat
- type ResponseChatLink
- type ResponseChatMembers
- type ResponseChats
- type ResponseConnection
- type ResponseContact
- type ResponseCounters
- type ResponseCreateChat
- type ResponseDeleteMessage
- type ResponseDeleteMessages
- type ResponseEditMessage
- type ResponseExecute
- type ResponseGifts
- type ResponseGroup
- type ResponseGroups
- type ResponseHealth
- type ResponseHistoryMessages
- type ResponseInfo
- type ResponseLongPoll
- type ResponseMessages
- type ResponseOffers
- type ResponsePinMessage
- type ResponseSaveUploadMessagesDocument
- type ResponseSaveUploadMessagesPhoto
- type ResponseSaveUploadMessagesPhotos
- type ResponseSendEventMessage
- type ResponseSendMessage
- type ResponseSendMessages
- type ResponseSetLongPoll
- type ResponseSetStatus
- type ResponseStatus
- type ResponseUploadMessagesDocument
- type ResponseUploadMessagesPhoto
- type ResponseUser
- type ResponseUsers
- type Rev
- type SaveMessagesDocument
- type SendEventMessage
- type SendMessage
- type SetGroupLongPoll
- type SetOnline
- type SetStatus
- type ShowComment
- type Spam
- type StartMessageID
- type StatusHealth
- type StickerID
- type SubscribeID
- type Template
- type Text
- type Time
- type Title
- type Token
- type Type
- type URL
- type UnbanUser
- type UserCareer
- type UserCity
- type UserContacts
- type UserCounters
- type UserCountry
- type UserEducation
- type UserID
- type UserLastSeen
- type UserMilitary
- type UserOccupation
- type UserPersonal
- type UserRelatives
- type UserSchools
- type UserUniversities
- type UserUniversity
- type UsersID
- type Version
Constants ¶
const ( COMMUNITY_RPS_LIMIT = 20 USER_RPS_LIMIT = 3 )
Variables ¶
This section is empty.
Functions ¶
func BooleanToInteger ¶
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 Attachment ¶
type Attachment string
type Attachments ¶
type Attachments []string
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 ¶
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 ¶
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) 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) GetChatLink ¶
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) 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) 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) 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) 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) 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 Characters ¶
type Characters int
type ChatMembers ¶
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 CommentBanUser ¶
type CreateChat ¶
type DeleteForAll ¶
type DeleteForAll bool
type DeleteMessage ¶
type DisableMentions ¶
type DisableMentions int
type DontParseLinks ¶
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 ¶
type ErrorDeleteMessage ¶
type ErrorParam ¶
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 ExpireTime ¶
type ExpireTime int
type Forward ¶
type Forward struct { ChatID int `json:"peer_id"` ChatMessageID int `json:"conversation_message_ids"` IsReply bool `json:"is_reply"` }
func GetForward ¶
func ReceiveForward ¶
func TakeForward ¶
type FriendsLike ¶
type GetBannedUsers ¶
type GetChatLink ¶
type GetChatMembers ¶
type GetCounters ¶
type GetCounters struct{}
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 GetMessage ¶
type GetUploadMessagesPhotoServer ¶
type GetUploadMessagesPhotoServer struct {
ChatID int
}
type GetUserLongPoll ¶
type InfoBanUser ¶
type KeepForwardMessages ¶
type KeepForwardMessages int
type KeepSnippets ¶
type KeepSnippets int
type Like ¶
type Like struct { Liked bool `json:"is_liked"` Friends FriendsLike `json:"friends"` }
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 MessagesFolder ¶
type MessagesID ¶
type MessagesID []int
type PinMessage ¶
type PushSettings ¶
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 ¶
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 ResponseBan ¶
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 ¶
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 ResponseContact ¶
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 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 ResponseExecute ¶
type ResponseGifts ¶
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 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 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 ResponseSaveUploadMessagesPhotos ¶
type ResponseSaveUploadMessagesPhotos struct { Error Error `json:"error"` Photos []ResponseSaveUploadMessagesPhoto }
type ResponseSendMessage ¶
type ResponseSendMessages ¶
type ResponseSendMessages struct { Error Error `json:"error"` Messages []ResponseSendMessage `json:"response"` }
func (ResponseSendMessages) Message ¶
func (messages ResponseSendMessages) Message() ResponseSendMessage
type ResponseSetLongPoll ¶
type ResponseSetStatus ¶
type ResponseStatus ¶
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 ¶
func (server ResponseUploadMessagesPhoto) Save(property any) ResponseSaveUploadMessagesPhotos
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 SaveMessagesDocument ¶
type SendEventMessage ¶
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 ShowComment ¶
type ShowComment bool
type StartMessageID ¶
type StartMessageID int
type StatusHealth ¶
type SubscribeID ¶
type SubscribeID 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 UserContacts ¶
type UserCounters ¶
type UserCounters struct { Albums int `json:"albums,omitempty"` Videos int `json:"videos,omitempty"` Audios int `json:"audios,omitempty"` Photos int `json:"photos,omitempty"` Notes int `json:"notes,omitempty"` Friends int `json:"friends,omitempty"` Gifts int `json:"gifts,omitempty"` Groups int `json:"groups,omitempty"` OnlineFriends int `json:"online_friends,omitempty"` MutualFriends int `json:"mutual_friends,omitempty"` UserVideos int `json:"user_videos,omitempty"` UserPhotos int `json:"user_photos,omitempty"` Followers int `json:"followers,omitempty"` Pages int `json:"pages,omitempty"` Subscriptions int `json:"subscriptions,omitempty"` }
type UserCountry ¶
type UserEducation ¶
type UserLastSeen ¶
type UserMilitary ¶
type UserOccupation ¶
type UserPersonal ¶
type UserPersonal struct { Political int `json:"political,omitempty"` Languages []string `json:"langs,omitempty"` Religion string `json:"religion,omitempty"` Inspired string `json:"inspired_by,omitempty"` PeopleMain int `json:"people_main,omitempty"` LifeMain int `json:"life_main,omitempty"` Smoking int `json:"smoking,omitempty"` Alcohol int `json:"alcohol,omitempty"` }
type UserRelatives ¶
type UserSchools ¶
type UserSchools struct { ID string `json:"id,omitempty"` Country int `json:"country,omitempty"` City int `json:"city,omitempty"` Name string `json:"name,omitempty"` YearFrom int `json:"year_from,omitempty"` YearTo int `json:"year_to,omitempty"` YearGraduated int `json:"year_graduated,omitempty"` Class string `json:"class,omitempty"` Speciality string `json:"speciality,omitempty"` Type int `json:"type,omitempty"` TypeName string `json:"type_str,omitempty"` }
type UserUniversities ¶
type UserUniversities []UserUniversity
type UserUniversity ¶
type UserUniversity struct { ID int `json:"id,omitempty"` Country int `json:"country,omitempty"` City int `json:"city,omitempty"` Name string `json:"name,omitempty"` Faculty int `json:"faculty,omitempty"` FacultyName string `json:"faculty_name,omitempty"` Chair int `json:"chair,omitempty"` ChairName string `json:"chair_name,omitempty"` Graduation int `json:"graduation,omitempty"` EducationForm string `json:"education_form,omitempty"` EducationStatus string `json:"education_status,omitempty"` }
Source Files ¶
- API.go
- ban.go
- banUser.go
- controlChat.go
- deleteMessage.go
- editMessage.go
- error.go
- execute.go
- getCounters.go
- getGifts.go
- getGroup.go
- getHealth.go
- getHistory.go
- getInfo.go
- getLongPoll.go
- getMessages.go
- getOffers.go
- getUploadMessages.go
- getUser.go
- message.go
- pinMessage.go
- responseBan.go
- responseBanUser.go
- responseConnection.go
- responseControlChat.go
- responseCounters.go
- responseDeleteMessage.go
- responseEditMessage.go
- responseExecute.go
- responseGifts.go
- responseGroups.go
- responseHealth.go
- responseHistoryMessages.go
- responseInfo.go
- responseLongPoll.go
- responseMessages.go
- responseOffers.go
- responsePinMessage.go
- responseSaveUploadMessage.go
- responseSendEventMessage.go
- responseSendMessage.go
- responseStatus.go
- responseUploadMessagesServer.go
- responseUsers.go
- saveUploadMessages.go
- sendEventMessage.go
- sendMessage.go
- setLongPollSettings.go
- setOnline.go
- status.go
- typedProperties.go
- uploadFile.go
- uploadMessages.go