https://github.com/infiniteverma/todo-notion-telegram
A telegram bot that uses the notion api to read and list out todo items from a page.
https://github.com/infiniteverma/todo-notion-telegram
notion telegram-bot todo
Last synced: about 2 months ago
JSON representation
A telegram bot that uses the notion api to read and list out todo items from a page.
- Host: GitHub
- URL: https://github.com/infiniteverma/todo-notion-telegram
- Owner: InfiniteVerma
- Created: 2021-06-23T13:22:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-26T07:00:52.000Z (about 3 years ago)
- Last Synced: 2025-02-26T14:21:20.885Z (2 months ago)
- Topics: notion, telegram-bot, todo
- Language: TypeScript
- Homepage:
- Size: 4.91 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todo-notion-telegram
Use telegram to update your to-do list on [Notion](https://www.notion.so/)! Built using [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api/) and [notion-sdk-js](https://github.com/makenotion/notion-sdk-js).
Telegram Bot | Notion Page
:-------------------------:|:-------------------------:
 |## Installation
```bash
npm i
```## Get tokens
1. Create a new a telegram bot using [BotFather](https://core.telegram.org/bots#6-botfather)
2. From the [Getting Started with Notion API](https://developers.notion.com/docs) guide, finish step 1
3. On the notion page, create a Todo list and copy the [blockID](https://stackoverflow.com/questions/67618449/how-to-get-the-block-id-in-notion-api).Store all three tokens list the format in `.example.env` file and rename it as `.env`
## Usage
```node
npm run dev
```## Commands
1. `/help`: List all commands
2. `/list`: Show all items
3. `/add item`: Add _item_
4. `/done `: Tick off _item_
4. `/clear`: Clear all items## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
[MIT](https://choosealicense.com/licenses/mit/)