Documentation ¶
Index ¶
- func Random() int
- type Ban
- type BanUser
- type BanUserComment
- type Banned
- type BannedUsers
- type Chat
- type ChatLink
- type ChatMembers
- type CreateChat
- type DeleteMessage
- type Dialogs
- type EditMessage
- type EnableOnline
- type EventAction
- type Execute
- type Forward
- type Gifts
- type Group
- type GroupLongPollServer
- type HistoryMessages
- type Info
- type KickUser
- type Message
- type Offers
- type PinMessage
- type ResolveDomain
- type SendEventMessage
- type SendMessage
- type SetGroupLongPoll
- type SetOnline
- type SetStatus
- type Status
- type UnbanUser
- type UploadMessagesDocumentServer
- type UploadMessagesPhotoServer
- type User
- type UserLongPollServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BanUser ¶
type BanUser struct { GroupID int UserID int Time int Reason int Comment BanUserComment }
type BanUserComment ¶
type BannedUsers ¶
type ChatMembers ¶
type CreateChat ¶
type DeleteMessage ¶
type EditMessage ¶
type EnableOnline ¶
type EnableOnline struct {
GroupID int
}
type EventAction ¶
type EventAction struct { Type string `json:"type,omitempty"` Text string `json:"text,omitempty"` // show_snackbar Link string `json:"link,omitempty"` // open_link // open_app AppID int `json:"app_id,omitempty"` ApplicationID int `json:"-"` OwnerID int `json:"owner_id,omitempty"` Hash string `json:"hash,omitempty"` }
func (EventAction) JSON ¶
func (action EventAction) JSON() string
type Forward ¶
type Forward struct { ChatID int `json:"peer_id"` ChatMessageID int `json:"conversation_message_ids"` IsReply bool `json:"is_reply"` }
func GetForward ¶
type GroupLongPollServer ¶
type GroupLongPollServer struct {
GroupID int
}
type HistoryMessages ¶
type PinMessage ¶
type ResolveDomain ¶
type ResolveDomain struct {
Domain string
}
type SendEventMessage ¶
type SendMessage ¶
type SendMessage struct { GroupID int RandomID int Domain string ChatID int ChatsID []int UserID int UsersID []int Text string Attachment string Attachments []string StickerID int Payload string Forward Forward Template string Keyboard string 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 UploadMessagesPhotoServer ¶
type UploadMessagesPhotoServer struct {
ChatID int
}
type UserLongPollServer ¶
Source Files ¶
- ban.go
- banUser.go
- chatControl.go
- deleteMessage.go
- dialogs.go
- editMessage.go
- execute.go
- gifts.go
- group.go
- groupOnline.go
- historyMessages.go
- info.go
- kickUser.go
- longPoll.go
- message.go
- offers.go
- pinMessage.go
- resolveDomain.go
- saveUploadMessage.go
- sendEventMessage.go
- sendMessage.go
- setLongPollSettings.go
- setOnline.go
- status.go
- uploadMessagesDocumentServer.go
- user.go
Click to show internal directories.
Click to hide internal directories.