Skip to content

About

Telegram bot with AMQP processing

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

The Almighty Telegrembo

AMQP Telegram Bot for the win. Use it with caution and care!

Requirements

  • Node.JS
  • Some AMQP server (tested only with RabbitMQ, but theoretically can work with others)

Installation

git clone https://github.com/maprox/telegrembo.git
cd telegrembo
npm install

Run

TOKEN=YOUR_TELEGRAM_BOT_TOKEN node .

Options

  • TOKEN ( required ) - Telegram bot token which you got from @BotFather

  • AMQP_HOST [127.0.0.1] - AMQP server host

  • AMQP_PORT [5672] - AMQP server port

  • AMQP_USERNAME [guest] - AMQP username

  • AMQP_PASSWORD [guest] - AMQP password

  • AMQP_EXCHANGE [telegram] - exchange name in AMQP server. Telegrembo listens for messages in a queue bound to this exchange

  • AMQP_QUEUE_NAME [telegram] - AMQP queue name to listen for messages

  • AMQP_QUEUE_ROUTING_KEY [telegram] - Routing key for the queue

Description

Telegrembo is a simple bot which listens for a message in an AMQP queue and forwards it to the specified telegram channel.

Current version supports only text messages. AMQP message should be a simple json with two fields:

{
    "send_to": "3773839202",
    "message": "Hello Virtual World!"
}

forthebadge forthebadge

About

Telegram bot with AMQP processing

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages