Coder Social home page Coder Social logo

quiteabot's Introduction

This is a tiny two-way Telegram-bot to XMPP-bridge. I has worked well for me for talking to some people that prefer Telegram.

Setup

To set it up, you need to:

  • cp quiteabot.yaml.example quiteabot.yaml
  • Fill out the bot's XMPP account (xmppuser, xmpppass)
    • The XMPP server host & port is found by looking up the DNS SRV record associated with the host part of the xmppuser (jabber ID). xmppserver can be set to override this.
  • Set xmpptarget to your own jid, or so
  • Get a Telegram account (mobile phone number needed)
  • Register a Telegram bot: https://core.telegram.org/bots
  • Fill in authorization token (telegramtoken)
  • Map some Telegram userids to names in the config (actually conversation ids, but I don't think they change) (telegramusers)

Usage

Your friend needs to:

  • Initially chat up your Telegram bot by its name and tell it /start
  • Message the bot to message you

quiteabot will forward the message to the configured xmpptarget, resolving the name from the userid, if present in telegramusers.

To message a Telegram user, you need to:

  • Send a message over XMPP to your bot, prefixing it with a username: from the mapping

TODO

Can only message a user by name, so first need to stuff them into telegramusers.

quiteabot's People

Contributors

quite avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

quiteabot's Issues

What does this bot run in?

I think your quiteabot may just be what I need. I would like to send xmpp messages to Telegram from something that can talk xmpp.

I assume the one has to run the code somewhere on a host in a docker? (I see a docker file).

I'm not a go dev, so could please add a brief description of how one would load this to get going please?

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.