Code Monkey home page Code Monkey logo

telegram-agenda-bot's People

Contributors

dependabot[bot] avatar sanderkoenders avatar

Watchers

 avatar  avatar

telegram-agenda-bot's Issues

Use access_token rather than refresh_token if it's still valid

The application is getting a new access_token with the refresh_token every time it's going to fetch calendar events. This isn't needed when the access_token is still valid. A check should be implemented to check whether fetching a new access_token is necessary.

Back the app with mongodb

Add a docker compose file and add both this app and mongodb to it. Save information and settings for users to mongodb instead of having this information in volume mounts.

Create API endpoint for Telegram bot

We can poll Telegram for new bot messages, to interact with. But I think it will be nicer for Telegram to have an API endpoint to do bot interaction with.

Making adding agenda an interactable telegram proces

When adding your agenda to telegram you should be able to post the /start command to the telegram bot. An interactive process will follow which will lead the user through giving permission to their calendar on google.

Cannot read property 'format' of undefined

Got this error while sending calendar events, most likely a problem in parseMoment (https://github.com/Archcry/telegram-agenda-bot/blob/542c38d8e086dbee6258899f3bd1f0dfe4ad2541/src/Main.ts#L91-L98)

TypeError: Cannot read property 'format' of undefined
    at Main.parseMoment (/usr/src/app/src/Main.js:90:80)
    at Main.calendarEventReducer (/usr/src/app/src/Main.js:80:43)
    at Array.reduce (<anonymous>)
    at Main.sendCalendarEvents (/usr/src/app/src/Main.js:55:44)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

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.