This commit is contained in:
Alex
2023-10-11 10:13:51 +01:00
parent fb6618181a
commit 8f2ad38503
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
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