Skip to content

imbaggaarm/go-messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-messenger License GitHub version

A Facebook Messenger API wrapper written in Golang, alternative to pymessenger.

Features

Getting Started

Installation

go get -u github.com/imbaggaarm/go-messenger

Example

import messenger "github.com/imbaggaarm/go-messenger"

apiVersion :=  messenger.DefaultApiVersion // or the version that you want
bot = messenger.NewBot(accessToken, apiVersion)

textMessage := "Hello! Can you hear me?"
bot.sendTextMessage(recipientId, textMessage)

Usage

  • fb-stranger-bot is a template project for chat-with-stranger chatbot.
  • VNUChatbot is a chat-with-stranger chatbot for university students.

Other

Future of go-messenger

There are a lot of missing functions in this package, I'm planning to make this better and better in the future. Here are some things will be implemented soon:

  • Attachment with file messages

Contact

Follow and contact me on Twitter. If you find an issue, just open a ticket. Pull requests are warmly welcome as well.