Skip to content

maprox/telegrembo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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_CONNECTION [amqp://guest:[email protected]//] - AMQP connection string

  • 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published