mirror of https://github.com/arc53/DocsGPT
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
376 B
Python
11 lines
376 B
Python
1 year ago
|
from langchain.document_loader import TelegramChatApiLoader, TelegramChatFileLoader
|
||
|
from application.parser.remote.base import BaseRemote
|
||
|
|
||
|
class TelegramChatApiRemote(BaseRemote):
|
||
|
def _init_parser(self, *args, **load_kwargs):
|
||
|
self.loader = TelegramChatApiLoader(**load_kwargs)
|
||
|
return {}
|
||
|
|
||
|
def parse_file(self, *args, **load_kwargs):
|
||
|
|
||
|
return text
|