types

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Random

func Random() int

Types

type Ban

type Ban struct {
	OwnerID int
}

type BanUser

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

type BanUserComment

type BanUserComment struct {
	Text string
	Show bool
}

type Banned

type Banned struct {
	Offset int
	Count  int
}

type BannedUsers

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

type Chat

type Chat struct {
	GroupID  int
	ChatID   int
	ChatsID  []int
	Extended bool
	Fields   []string
}
type ChatLink struct {
	GroupID int
	ChatID  int
	Reset   bool
}

type ChatMembers

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

type CreateChat

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

type DeleteMessage

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

type Dialogs

type Dialogs struct {
	Offset         int
	Count          int
	StartMessageID int
	PreviewLength  int
	Unread         bool
	Important      bool
	Unanswered     bool
	UserID         string
}

type EditMessage

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

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 Execute

type Execute struct {
	Code    any
	Version float32
}

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, chatMessageID int, isReply bool) Forward

type Gifts

type Gifts struct {
	UserID int
	Count  int
	Offset int
}

type Group

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

type GroupLongPollServer

type GroupLongPollServer struct {
	GroupID int
}

type HistoryMessages

type HistoryMessages struct {
	GroupID        int
	ChatID         int
	UserID         int
	StartMessageID int
	Offset         int
	Count          int
	Rev            bool
	Extended       bool
	Fields         []string
}

type Info

type Info struct {
	Fields []string
}

type KickUser

type KickUser struct {
	ChatID   int
	UserID   int
	MemberID int
	Text     string
}

type Message

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

type Offers

type Offers struct {
	Count  int
	Offset int
}

type PinMessage

type PinMessage struct {
	ChatID        int
	MessageID     int
	ChatMessageID int
}

type ResolveDomain

type ResolveDomain struct {
	Domain string
}

type SendEventMessage

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

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 SetOnline

type SetOnline struct {
	Calls bool
}

type SetStatus

type SetStatus struct {
	GroupID int
	Text    string
}

type Status

type Status struct {
	GroupID int
	UserID  int
}

type UnbanUser

type UnbanUser struct {
	GroupID int
	UserID  int
}

type UploadMessagesDocumentServer

type UploadMessagesDocumentServer struct {
	ChatID int
	Type   string
}

type UploadMessagesPhotoServer

type UploadMessagesPhotoServer struct {
	ChatID int
}

type User

type User struct {
	UserID   int
	UserIDs  []int
	NameCase string
	Fields   []string
}

type UserLongPollServer

type UserLongPollServer struct {
	GroupID int
	Version int
	NeedPTS bool
}

Jump to

Keyboard shortcuts

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