Categorygithub.com/unixpickle/fbmsgr
modulepackage
0.0.0-20190203155408-d6a22ced22f9
Repository: https://github.com/unixpickle/fbmsgr.git
Documentation: pkg.go.dev

# README

fbmsgr GoDoc

This is a wrapper around Facebook Messenger's internal AJAX protocol. This wrapper could be used for any number of cool things, such as:

  • Tracking your friends' Messenger activity.
  • Analyzing your conversations (e.g. keywords analysis)
  • Automating "Away" messages
  • Creating chat bots

Current status

Currently, the API is fairly reliable and can perform a bunch of basic functionalities. Here is a list of supported features (it may lag slightly behind the master branch):

  • Send textual messages to people or groups
  • Send attachments to people or groups
  • Receive messages with or without attachments
  • Send read receipts
  • Receive events for incoming messages
  • Receive events for friend "Last Active" updates
  • Set chat text colors (to arbitrary RGB colors)
  • List a user's threads.
  • List messages in a thread.
  • Send and receive typing events
  • Delete messages

TODO

  • Support emojis in threads (i.e. the like button)
  • In FullActionLog, remove all duplicates, incase two messages have the same timestamp.
  • Emoji/sticker transmission
  • Modifying chat preferences (emoji, nicknames, etc.)
  • View pending message requests
  • Create new group chats

License

This is under a BSD 2-clause license. See LICENSE.

# Functions

Auth creates a new Session by authenticating with the Facebook backend.

# Constants

These are attachment type IDs used by Messenger.
These are attachment type IDs used by Messenger.
No description provided by the author
These are attachment type IDs used by Messenger.
These are attachment type IDs used by Messenger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are attachment type IDs used by Messenger.
These are attachment type IDs used by Messenger.

# Structs

A AudioAttachment is an attachment for an audio file.
A BuddyEvent is an Event containing information about a buddy's updated status.
DeleteMessageEvent indicates that a message has been deleted.
An EventStream is a live stream of events.
A FileAttachment is an attachment for a raw file.
A GenericAction is an Action with no action-specific fields.
An ImageAttachment is an Attachment with specific info about an image.
A MessageAction is an Action for a user-sent message.
A MessageEvent is an Event containing a new message.
ParticipantInfo stores information about a user.
A Session is an authenticated session with the messenger backend.
A StickerAttachment is an Attachment with specific info about a sticker.
ThreadInfo stores information about a chat thread.
A TypingEvent indicates that a user has started or stopped typing.
An UnknownAttachment is an Attachment of an unknown or unsupported type.
UploadResult is the result of uploading a file.
No description provided by the author

# Interfaces

An Action is something which occurred in a thread.
An Attachment is an abstract non-textual entity attached to a message.
An Event is a notification pushed to the client by the server.

# Type aliases

No description provided by the author