Skip to content

Slack and Telegram bot #271

@toasted226

Description

@toasted226

We need to allow distributors to easily add a bot to their Slack / Telegram so that they may regularly post relevant content automatically.

The user story for the distributor should work as follows:

  1. User signs in
  2. User creates an integration or navigates to an existing integration
  3. User clicks on "Add a community" button
  4. User picks a platform (Slack / Telegram)
  5. User pastes a channel ID
  6. User configures bot with form

Slack:

  • Slack Token
  • Channel ID
  • Post frequency

Telegram:

  • Telegram Token
  • Chat ID
  • Message Thread ID
  • Post frequency
  1. Upon completion, a bot for their platform should start posting content.

We need to add an event type on analytics for when a bot posts content, and we need to know which bot posted content.

We will need an endpoint to be polled that will return whether new content is available to be pulled or not. This endpoint will have to make use of analytics to determine what content has been posted already.

We need to make endpoints for creating, reading, updating and deleting a bot integration.
The bot integration will be hooked up to a job that will periodically call an endpoint to post some content to the desired platform. We need a table to store the configuration for the bot integration.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions