Skip to content

tsparber/jabber_bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jabber transport for Telegram

This is telegram bot that implements jabber transport in telegram. Now it can connect, disconnect, receive messages, and support replying to messages

Building

Strophe library used for xmpp connection so it must be installed

# on mac
brew install libstrophe
# on linux, get sources, ./configure && make install
go get github.com/gorilla/mux
go build

Setup

Create settings.json in root. Format:

{
	"listen": 9000, //port
	"token": "asdf", //telegram auth token
	"base_domain": "example.com", //your domain
	"hook_path": "/bot/hook", // url where will updates come
	"admin_user_id": 234234 // if you want get messages (not commands) from users
}

Then you must setup base server (like nginx), proxy hook_path in its config to bot port.

Commands

  • /connect jid pass
  • /disconnect

About

Jabber transport for Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 79.6%
  • C 20.4%