telegram.py — langchain Source File
Architecture documentation for telegram.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 629dbe97_a82e_ed82_0b2e_a9257fe3f630["telegram.py"] 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 629dbe97_a82e_ed82_0b2e_a9257fe3f630 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7["langchain_classic._api"] 629dbe97_a82e_ed82_0b2e_a9257fe3f630 --> 439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7 1c9358b6_c985_3c85_5382_b0cfd1a3409c["langchain_community.document_loaders"] 629dbe97_a82e_ed82_0b2e_a9257fe3f630 --> 1c9358b6_c985_3c85_5382_b0cfd1a3409c 0e3ec311_6551_d2cd_f73c_41430c8c66f6["langchain_community.document_loaders.telegram"] 629dbe97_a82e_ed82_0b2e_a9257fe3f630 --> 0e3ec311_6551_d2cd_f73c_41430c8c66f6 style 629dbe97_a82e_ed82_0b2e_a9257fe3f630 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import (
TelegramChatApiLoader,
TelegramChatFileLoader,
)
from langchain_community.document_loaders.telegram import (
concatenate_rows,
text_to_docs,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"concatenate_rows": "langchain_community.document_loaders.telegram",
"TelegramChatFileLoader": "langchain_community.document_loaders",
"text_to_docs": "langchain_community.document_loaders.telegram",
"TelegramChatApiLoader": "langchain_community.document_loaders",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"TelegramChatApiLoader",
"TelegramChatFileLoader",
"concatenate_rows",
"text_to_docs",
]
Domain
Subdomains
Functions
Dependencies
- langchain_classic._api
- langchain_community.document_loaders
- langchain_community.document_loaders.telegram
- typing
Source
Frequently Asked Questions
What does telegram.py do?
telegram.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in telegram.py?
telegram.py defines 2 function(s): __getattr__, langchain_community.
What does telegram.py depend on?
telegram.py imports 4 module(s): langchain_classic._api, langchain_community.document_loaders, langchain_community.document_loaders.telegram, typing.
Where is telegram.py in the architecture?
telegram.py is located at libs/langchain/langchain_classic/document_loaders/telegram.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/langchain_classic/document_loaders).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free