Versions in this module Expand all Collapse all v0 v0.2.0 Dec 12, 2018 Changes in this version + const AnimatedImageAttachmentType + const AudioAttachmentType + const BaseURL + const FileAttachmentType + const ImageAttachmentType + const LargeEmoji + const MediumEmoji + const MessageActionType + const SmallEmoji + const SpoofedUserAgent + const StickerAttachmentType + const VideoAttachmentType + type Action interface + ActionTime func() time.Time + ActionType func() string + AuthorFBID func() string + MessageID func() string + RawFields func() map[string]interface{} + type Attachment interface + AttachmentType func() string + URL func() string + type AudioAttachment struct + AudioURL string + Name string + func (f *AudioAttachment) AttachmentType() string + func (f *AudioAttachment) String() string + func (f *AudioAttachment) URL() string + type BuddyEvent struct + FBID string + LastActive time.Time + type DeleteMessageEvent struct + GroupThread string + MessageIDs []string + OtherUser string + type EmojiSize string + type Event interface + type EventStream struct + func (e *EventStream) Chan() <-chan Event + func (e *EventStream) Close() error + func (e *EventStream) Error() error + type FileAttachment struct + FileURL string + Name string + func (f *FileAttachment) AttachmentType() string + func (f *FileAttachment) String() string + func (f *FileAttachment) URL() string + type GenericAction struct + RawData map[string]interface{} + func (g *GenericAction) ActionTime() time.Time + func (g *GenericAction) ActionType() string + func (g *GenericAction) AuthorFBID() string + func (g *GenericAction) MessageID() string + func (g *GenericAction) RawFields() map[string]interface{} + func (g *GenericAction) String() string + type ImageAttachment struct + Animated bool + FBID string + Height int + HiResURL string + LargePreviewHeight int + LargePreviewURL string + LargePreviewWidth int + PreviewHeight int + PreviewURL string + PreviewWidth int + ThumbnailURL string + Width int + func (i *ImageAttachment) AttachmentType() string + func (i *ImageAttachment) String() string + func (i *ImageAttachment) URL() string + type MessageAction struct + Attachments []Attachment + Body string + type MessageEvent struct + Attachments []Attachment + Body string + GroupThread string + MessageID string + OtherUser string + SenderFBID string + type ParticipantInfo struct + BigImageSrc string + FBID string + Gender string + ImageSrc string + Name string + ShortName string + URL string + Username string + type Session struct + Client *http.Client + func Auth(user, password string) (sess *Session, err error) + func (s *Session) ActionLog(fbid string, timestamp time.Time, limit int) (log []Action, err error) + func (s *Session) AllThreads() (res []*ThreadInfo, err error) + func (s *Session) Close() error + func (s *Session) DeleteMessage(id string) (err error) + func (s *Session) EventStream() *EventStream + func (s *Session) FBID() string + func (s *Session) FullActionLog(fbid string, cancel <-chan struct{}) (<-chan Action, <-chan error) + func (s *Session) ProfilePicture(fbid string) (picURL *url.URL, err error) + func (s *Session) ReadEvent() (Event, error) + func (s *Session) SendAttachment(userFBID string, a *UploadResult) (mid string, err error) + func (s *Session) SendGroupAttachment(groupFBID string, a *UploadResult) (mid string, err error) + func (s *Session) SendGroupLike(groupFBID, emoji string, size EmojiSize) (msgID string, err error) + func (s *Session) SendGroupText(groupFBID, message string) (msgID string, err error) + func (s *Session) SendGroupTyping(groupFBID string, typing bool) (err error) + func (s *Session) SendLike(fbid, emoji string, size EmojiSize) (msgID string, err error) + func (s *Session) SendReadReceipt(fbid string) (err error) + func (s *Session) SendText(fbid, message string) (msgID string, err error) + func (s *Session) SendTyping(userFBID string, typing bool) (err error) + func (s *Session) SetChatColor(fbid, cssColor string) (err error) + func (s *Session) Threads(timestamp time.Time, limit int) (res []*ThreadInfo, err error) + func (s *Session) Upload(filename string, file io.Reader) (res *UploadResult, err error) + type StickerAttachment struct + FrameCount int + FrameRate int + FramesPerCol int + FramesPerRow int + Height int + PackID int64 + PaddedSpriteURI string + PaddedSpriteURI2x string + RawURL string + SpriteURI string + SpriteURI2x string + StickerID int64 + Width int + func (s *StickerAttachment) AttachmentType() string + func (s *StickerAttachment) String() string + func (s *StickerAttachment) URL() string + type ThreadInfo struct + Image *string + MessageCount int + Name *string + OtherUserID *string + Participants []*ParticipantInfo + Snippet string + SnippetSender string + ThreadFBID string + UnreadCount int + UpdatedTime time.Time + type TypingEvent struct + GroupThread string + SenderFBID string + Typing bool + type UnknownAttachment struct + RawData map[string]interface{} + Type string + func (u *UnknownAttachment) AttachmentType() string + func (u *UnknownAttachment) String() string + func (u *UnknownAttachment) URL() string + type UploadResult struct + AudioID string + FileID string + ImageID string + VideoID string + type VideoAttachment struct + FBID string + Height int + LargePreviewHeight int + LargePreviewURL string + LargePreviewWidth int + Name string + PreviewHeight int + PreviewURL string + PreviewWidth int + ThumbnailURL string + VideoURL string + Width int + func (v *VideoAttachment) AttachmentType() string + func (v *VideoAttachment) String() string + func (v *VideoAttachment) URL() string