Skip to content

Commit

Permalink
community:update telegram notebook (langchain-ai#18569)
Browse files Browse the repository at this point in the history
**Description:** 
modified the user_name to username to conform with the expected inputs
to TelegramChatApiLoader

**Issue:**
Current code fails in langchain-community 0.0.24 
<loader = TelegramChatApiLoader(
    chat_entity="<CHAT_URL>",  # recommended to use Entity here
    api_hash="<API HASH >",
    api_id="<API_ID>",
    user_name="",  # needed only for caching the session.
)>
  • Loading branch information
rdzotz authored and Dave Bechberger committed Mar 29, 2024
1 parent 2468a76 commit 1009d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/integrations/document_loaders/telegram.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
" chat_entity=\"<CHAT_URL>\", # recommended to use Entity here\n",
" api_hash=\"<API HASH >\",\n",
" api_id=\"<API_ID>\",\n",
" user_name=\"\", # needed only for caching the session.\n",
" username=\"\", # needed only for caching the session.\n",
")"
]
},
Expand Down

0 comments on commit 1009d43

Please sign in to comment.