mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 18:52:12 +03:00
33eec50a09
moved to mintlify
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
---
|
|
title: Telegram
|
|
---
|
|
|
|
## Load a Telegram chat
|
|
|
|
- You can export your Telegram chat history using the [Telegram Desktop](https://desktop.telegram.org/) app.
|
|
- Go to Settings > Advanced > Export Telegram data
|
|
- Select the chat you want to export
|
|
- Select the format `Machine-readable JSON`
|
|
- Click `Export`
|
|
- Rename the `json` to `<yourname>.telegram`
|
|
- Go to [Quivr.app](https://quivr.app/) and upload the file to a brain
|
|
- You can now search your Telegram chat history!
|
|
|
|
## Create a telegram bot
|
|
|
|
- Go to [BotFather](https://t.me/botfather) and create a new bot
|
|
- Copy the token
|
|
- Go to `/connectors/telegram` and copy-paste the .env.example file
|
|
- `TELEGRAM_BOT_TOKEN` The token you copied from BotFather
|
|
- `QUIVR_TOKEN` The API Key of Quivr you can find in your profile
|
|
- `QUIVR_CHAT_ID` Create a new chat in Quivr and copy the ID from the URL
|
|
- `QUIVR_BRAIN_ID` Copy the id of the brain on which you want to ask question to
|
|
- `QUIVR_URL` The URL of the **API** of the Quivr instance you want to use
|
|
|
|
Enjoy ! 🎉
|
|
|
|
<div style={{ textAlign: 'center' }}>
|
|
<video width="640" height="480" controls>
|
|
<source src="https://quivr-cms.s3.eu-west-3.amazonaws.com/quivr_telegram_bot_283a935f26.mp4" type="video/mp4"/>
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
</div> |