Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID int64 `json:"id"` Type AccountType `json:"type"` Username string `json:"username,omitempty"` Photo string `json:"photo,omitempty"` }
type AccountType ¶
type AccountType string
const ( AccountTypeDefault AccountType = "DEFAULT" AccountTypeAnonymous AccountType = "ANONYMOUS" AccountTypeChannel AccountType = "CHANNEL" AccountTypeChannelBot AccountType = "CHANNEL_BOT" )
type Chat ¶
type Chat struct { ID int64 `json:"id"` Type ChatType `json:"type"` Title string `json:"title,omitempty"` Photo *ChatPhoto `json:"photo,omitempty"` Display string `json:"display,omitempty"` PinnedMessage *Message `json:"pinned_message,omitempty"` Chat *Chat `json:"chat,omitempty"` User *User `json:"user,omitempty"` Channel *Chat `json:"channel,omitempty"` }
type ChatType ¶
type ChatType string
const ( // default ChatTypeDiscuss ChatType = "DISCUSS" ChatTypeDiscussPrivate ChatType = "DISCUSS_PRIVATE" ChatTypeGroup ChatType = "GROUP" ChatTypeGroupPrivate ChatType = "GROUP_PRIVATE" ChatTypePrivate ChatType = "PRIVATE" // channel ChatTypeChannel ChatType = "CHANNEL" ChatTypeChannelPrivate ChatType = "CHANNEL_PRIVATE" // channel room ChatTypeRoomText ChatType = "ROOM_TEXT" ChatTypeRoomVoice ChatType = "ROOM_VOICE" ChatTypeRoomGroup ChatType = "ROOM_GROUP" ChatTypeRoomLive ChatType = "ROOM_LIVE" ChatTypeRoomApp ChatType = "ROOM_APP" ChatTypeRoomForum ChatType = "ROOM_FORUM" ChatTypeRoomPrivate ChatType = "ROOM_PRIVATE" )
type Message ¶
type Message struct { MessageID int64 `json:"message_id"` Chat *Chat `json:"chat"` From *User `json:"from,omitempty"` Forward *Message `json:"forward,omitempty"` ReplyTo *Message `json:"reply_to,omitempty"` Time int64 `json:"time"` EditTime int64 `json:"edit_time,omitempty"` Text string `json:"text,omitempty"` Entities []*MessageEntity `json:"entities,omitempty"` Animation *Animation `json:"animation,omitempty"` Audio *Audio `json:"audio,omitempty"` Document *Document `json:"document,omitempty"` Photo *Photo `json:"photo,omitempty"` Sticker *Sticker `json:"sticker,omitempty"` Video *Video `json:"video,omitempty"` Voice *Voice `json:"voice,omitempty"` Contact *Contact `json:"contact,omitempty"` Dice *Dice `json:"dice,omitempty"` Poll *Poll `json:"poll,omitempty"` Venue *Venue `json:"venue,omitempty"` NewChatUsers []*User `json:"new_chat_users,omitempty"` LeftChatUser *User `json:"left_chat_user,omitempty"` NewChatTitle string `json:"new_chat_title,omitempty"` NewChatPhoto *Photo `json:"new_chat_photo,omitempty"` PinnedMessage *Message `json:"pinned_message,omitempty"` }
type MessageEntity ¶
type PollOption ¶
Click to show internal directories.
Click to hide internal directories.