Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Apr 14, 2024
1 parent 207221c commit f5a04cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ async def del_message(num, message):
asyncio.run(del_message(number, message))


tool_name = "communication.telegram.delete_message"
tool_name = "communication.telegram.as_user.delete_message"
tool_obj = delete_message
tool_requirements = ["telethon==1.34.0"]
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ async def fetch_recent_chats(limit):
return chats


tool_name = "communication.telegram.get_last_dialogs"
tool_name = "communication.telegram.as_user.get_last_dialogs"
tool_obj = get_last_dialogs
tool_requirements = ["telethon==1.34.0"]
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ async def get_messages(num, limit):
return messages


tool_name = "communication.telegram.get_last_messages"
tool_name = "communication.telegram.as_user.get_last_messages"
tool_obj = get_last_messages
tool_requirements = ["telethon==1.34.0"]
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ async def send_message(number, message):
return result


tool_name = "communication.telegram.send_message"
tool_name = "communication.telegram.as_user.send_message"
tool_obj = send_message
tool_requirements = ["telethon==1.34.0"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ async def send_message():
return result


tool_name = "communication.telegram.signin"
tool_name = "communication.telegram.as_user.signin"
tool_obj = signin
tool_requirements = ["telethon==1.34.0"]

0 comments on commit f5a04cd

Please sign in to comment.