Git Product home page Git Product logo

telegram_intermittent_fasting_bot's Introduction

telegram_intermittent_fasting_bot

Simple telegram bot to help manage my intermittent fasting and more important to help me study laravel telegram bot api

telegram_intermittent_fasting_bot's People

Contributors

rohollhsh avatar

telegram_intermittent_fasting_bot's Issues

handle user timezone

Users can send their time zone as country to bot for better service.
first idea is to save all countries as ""ENUM" in database in user table but for future improvements to add new county or remove one its better for timezone and countries to have separate table and it should be connected to user table.
we save date and hours in default timezone but for view we will change it for user interface.

middlewares

1)create auth middleware check if user new or not instead of doing it in InputController.
2)create a request(update) middleware to manage inputs no matter through message_input or CallbackQuery.

webhook

webHook security

  1. define specific folder to make sure request is from teleram.
  2. use self signed key
    3.make login panel to change webhook.

routes

witch way to write the routes in web.php so i have to verify csrf token for it or use api.php?

security middle ware

Check Entries.
1)users shouldn't be able to spam.
2)avoid bad entries in bot(stop SQL injections).
3)webhook entries (discussed at related issue).

dynamic class names

handling steps and input texts with dynamic classes instead of case or if

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.