Revert changes to anthropic_telegram_inference_bot.py

This commit is contained in:
cyclop-bot
2024-08-20 16:51:44 -05:00
parent 9f8418b47d
commit 80f2fc4fed
-11
View File
@@ -4,7 +4,6 @@ import logging
from anthropic import Anthropic
from base_telegram_inference_bot import BaseTelegramInferenceBot
from telegram_helper import TelegramHelper
from browse_command import browse_command, button_callback
class AnthropicTelegramInferenceBot(BaseTelegramInferenceBot):
def __init__(self):
@@ -102,19 +101,9 @@ class AnthropicTelegramInferenceBot(BaseTelegramInferenceBot):
else:
return "No active processing to abort."
async def browse(self, update, context):
await browse_command(update, context)
def main():
bot = AnthropicTelegramInferenceBot()
telegram_helper = TelegramHelper(bot)
# Add the /browse command handler
telegram_helper.add_command_handler('browse', bot.browse)
# Add the button callback handler
telegram_helper.add_callback_query_handler(button_callback)
telegram_helper.run()
if __name__ == '__main__':