6大核心模块(Modules)
示例
Telegram

LangChain

Telegram

Telegram Messenger (opens in a new tab) 是一种全球可访问的免费增值、跨平台、加密、基于云的集中式即时消息服务。该应用程序还提供可选的端到端加密聊天和视频通话、VoIP、文件共享和其他一些功能。

This notebook covers how to load data from Telegram into a format that can be ingested into LangChain.

from langchain.document_loaders import TelegramChatLoader
 
loader = TelegramChatLoader("example_data/telegram.json")
 
loader.load()
 
[Document(page_content="Henry on 2020-01-01T00:00:02: It's 2020...  Henry on 2020-01-01T00:00:04: Fireworks!  Grace 🧤 ðŸ\x8d’ on 2020-01-01T00:00:05: You're a minute late!  ", lookup_str='', metadata={'source': 'example_data/telegram.json'}, lookup_index=0)]