Skip to content

gramophone is a asynchronous microservice for sending messages to a group of users from the telegram bot's.

License

Notifications You must be signed in to change notification settings

kirillkuzin/gramophone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gramophone

gramophone is a asynchronous microservice for sending messages to a group of users from the telegram bot's.

Setup

gramophone is configured using environment variables:

  • BOT_TOKEN - a token of your bot
  • SEND_MESSAGE_ENDPOINT - endpoint for accepting requests to send messages (default is "/")

Usage

For launch execute this:

uvicorn gramophone.main:app --some options

Send a POST request to the gramophone with body:

{
    "telegram_ids": [1, 2, 3, 4, 5],
    "message": "👋Hi all !\n🎉This is a test message !\n🙈By !"
}

Requirements

About

gramophone is a asynchronous microservice for sending messages to a group of users from the telegram bot's.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages