Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeMessageNew = "message_new" EventTypeMessageEvent = "message_event" )
View Source
const ( ActionTypeKickUser = "chat_kick_user" ActionTypeInviteUser = "chat_invite_user" ActionTypeByLink = "chat_invite_user_by_link" )
Actions types.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientInfo ¶
type ClientInfo struct { ButtonActions []string `json:"button_actions"` Keyboard bool `json:"keyboard"` InlineKeyboard bool `json:"inline_keyboard"` Carousel bool `json:"carousel"` LangID int `json:"lang_id"` }
ClientInfo struct.
type Event ¶
type Event struct { Object interface{} Type string }
Event struct.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface.
type MessageEvent ¶
type MessageEvent struct { Payload vkapi.JSONData `json:"payload"` EventID string `json:"event_id"` UserID vkapi.UserID `json:"user_id"` PeerID vkapi.ID `json:"peer_id"` ConversationMessageID int `json:"conversation_message_id"` }
MessageEvent struct.
type MessageNew ¶
type MessageNew struct { Message vkapi.Message `json:"message"` ClientInfo ClientInfo `json:"client_info"` }
MessageNew struct.
Click to show internal directories.
Click to hide internal directories.