Code Monkey home page Code Monkey logo

telegram-bundle's People

Contributors

kettari avatar

Watchers

 avatar  avatar

Forkers

iiiiii1wepfj

telegram-bundle's Issues

Introduce /push command

To send news and updates to bot users implement command /push.

  1. Ask the user which notification channel to use.
  2. Ask notification text.
  3. Allow to attach one URL button to the message.
  4. Show preview, ask for CONFIRMATION
  5. Push the message.

Add extended /help to commands

Add extended description to command's classes and show them for "/help command"

Also "one-time" tips for using the bot. Guide for newbies.

Introduce telegram:user:invalidate

Command to check users against Tallanto /users endpoint and block those who are not in the 'Active' state.

  • Introduce command
  • Run cron 15 3 * * * to execute this command for all bots

Make push use deferred model to avoid timeout from Telegram on massive updates

Add table "push" and insert there all per-user rows to be delivered.

Then, cron job */5 executes console command "telegram:push-deliver" which reads, say, 1200 rows and delivers them to users.

  • user
  • text
  • disable_web_page_preview
  • disable_notification
  • status (pending/delivered/blocked)
  • creation_date
  • update_date

Update audit log

Move current dirty-level log to "update" entity and write high-level useful log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.