sanderkoenders / telegram-agenda-bot Goto Github PK
View Code? Open in Web Editor NEWA bot that posts agenda events in telegram
A bot that posts agenda events in telegram
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.
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.
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.
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.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.