Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ildus/jabber_bot

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jabber bot for Telegram

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

Build

Strophe library used for xmpp connection so it must be installed

# on mac
brew install libstrophe
# on linux, get sources of strophe, ./configure && make install
# or install it with package manager
go get github.com/gorilla/mux
go build

Setup

Create settings.json file in the root folder. 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
  • /disconnect

TODO

  • External authorization (user credentials will not be in chat history)
  • Tools for sending messages to any buddy
  • Adding a buddy and authorization
  • OTR (Off-The-Record messaging)
  • Roster

About

Jabber bot for Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.