• Stars
    star
    2
  • Language
    Ruby
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rails app that powers "Hey GPT" Telegram bot

🤖 Hey GPT

Rails app that powers Hey GPT Telegram bot.

Basically it's just a webhook handler which processes each message in the background using Sidekiq. Something like this:

sequenceDiagram;
  participant U as User;
  participant B as Bot;
  participant A as Rails app;
  participant W as Sidekiq worker;
  U->>B: sends message
  B->>A: sends webhook with update
  A->>W: enqueues webhook processing job
  W->>U: sends message with response (usually from OpenAI API)

Stack

  • Ruby/Rails/Sidekiq
  • PostgreSQL
  • Redis