https://github.com/ildus/jabber_bot
Jabber bot for Telegram
https://github.com/ildus/jabber_bot
Last synced: 5 months ago
JSON representation
Jabber bot for Telegram
- Host: GitHub
- URL: https://github.com/ildus/jabber_bot
- Owner: ildus
- Created: 2015-07-21T09:37:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T16:00:44.000Z (over 7 years ago)
- Last Synced: 2025-04-02T05:42:13.577Z (9 months ago)
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
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