Skip to content

Microservice that and forwards messages and reports transactions from @tribute telegram bot

Notifications You must be signed in to change notification settings

izeberg/go-tribute-payments-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Tribute bot hook

Accepts messages from @tribute bot:

  • Forwards new messages into other chat
  • Sends new transactions into webhook url
  • Initially fetches all transactions

Bot requires login into telegram account.

The microservice guarantees that each message will be delivered or forwarded at least once. However, it cannot guarantee that the message will only be delivered once. Handling duplicate messages is the responsibility of the webhook receiver (for example, use transaction ID as a unique constraint).

Docker

Everything could be run in docker, just use image izeberg/go-tribute-payments-hook.

Settings

Application could be configured with environment variables defined here ./app/settings/settings.go.

Here's example:

# get credentials from https://my.telegram.org
telegram_api_id=<api_id>
telegram_api_hash=<api_hash>

# peer id where messages will be accepted to processing
telegram_incoming_from=@trubute

# optional, this is where session will be stored (default /session)
telegram_session_path=/session

# optional, peer id to forward message
telegram_forward_to=1111111111

# optional url where HTTP POST with info will be sent
webhook_url=https://example.com/tribute
# optional basic auth parameters
webhook_login=user
webhook_password=pwd
# optional hmac signature key for webhook's body
webhook_signature_key=supersecretKey

About

Microservice that and forwards messages and reports transactions from @tribute telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published