forked from Archives/langchain
fix(document_loaders/telegram): fix pandas calls + add tests (#4806)
# Fix Telegram API loader + add tests. I was testing this integration and it was broken with next error: ```python message_threads = loader._get_message_threads(df) KeyError: False ``` Also, this particular loader didn't have any tests / related group in poetry, so I added those as well. @hwchase17 / @eyurtsev please take a look on this fix PR. --------- Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>dynamic_agent_tools
parent
206c87d525
commit
00c6ec8a2d
@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"sender_id": -1111111,
|
||||
"text": "Hello, world!",
|
||||
"date": "2023-05-15T19:30:49+00:00",
|
||||
"message.id": 1785,
|
||||
"is_reply": false,
|
||||
"reply_to_id": null
|
||||
},
|
||||
{
|
||||
"sender_id": -1111111,
|
||||
"text": "Telegram is the best!",
|
||||
"date": "2023-05-08T20:17:10+00:00",
|
||||
"message.id": 1784,
|
||||
"is_reply": true,
|
||||
"reply_to_id": 1783
|
||||
},
|
||||
{
|
||||
"sender_id": -1111111,
|
||||
"text": "Langchain is great.",
|
||||
"date": "2023-05-03T23:43:33+00:00",
|
||||
"message.id": 1783,
|
||||
"is_reply": true,
|
||||
"reply_to_id": 1782
|
||||
},
|
||||
{
|
||||
"sender_id": -1111111,
|
||||
"text": "LLMs are awesome!",
|
||||
"date": "2023-05-03T15:32:25+00:00",
|
||||
"message.id": 1782,
|
||||
"is_reply": false,
|
||||
"reply_to_id": null
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue