Skip to content

Commit

Permalink
fix: add dependence
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Mar 19, 2024
1 parent 9daab7f commit 0c90e27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions handlers/claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def claude_handler(message: Message, bot: TeleBot) -> None:
parse_mode="MarkdownV2",
)
# pop my user
player_message.pop()
player_message.clear()
return

try:
Expand Down Expand Up @@ -164,8 +164,9 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
parse_mode="MarkdownV2",
)
except Exception as e:
player_message.clear()
print(str(e))
pass
return

player_message.append(
{
Expand All @@ -181,7 +182,7 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
parse_mode="MarkdownV2",
)
# pop my user
player_message.pop()
player_message.clear()
return


Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
pyTelegramBotAPI==4.14.0
pyTelegramBotAPI
cairosvg
github_poster
prettymapp
google-generativeai==0.3.1
anthropic
telegramify-markdown
openai
requests
requests

0 comments on commit 0c90e27

Please sign in to comment.