added chromium and new bot tokens

This commit is contained in:
Dobromir Popov
2023-12-19 21:37:07 +00:00
parent b27700ae5c
commit 5c5136be7c
4 changed files with 17 additions and 8 deletions

View File

@ -1,5 +1,7 @@
import logging
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from telegram.ext import Updater, CommandHandler, MessageHandler, filters, CallbackContext
import requests
import json
import base64
@ -13,10 +15,13 @@ logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s
logger = logging.getLogger(__name__)
# Telegram Bot Token
TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN_HERE'
# t.me/kevin_ai_robot
TOKEN = '6805059978:AAHNJKuOeazMSJHc3-BXRCsFfEVyFHeFnjw'
# t.me/artitherobot 6749075936:AAHUHiPTDEIu6JH7S2fQdibwsu6JVG3FNG0
# LLM API Endpoint
LLM_ENDPOINT = "http://localhost:11434/api/chat"
LLM_ENDPOINT = "http://192.168.0.11:11434/api/chat"
# Selenium WebDriver setup for screenshots
chrome_options = Options()
@ -25,7 +30,7 @@ driver = webdriver.Chrome(options=chrome_options)
def start(update, context):
"""Send a message when the command /start is issued."""
update.message.reply_text('Hi! Send me a message, and I will interact with LLM.')
update.message.reply_text('Hi I am ! Send me a message, and I will interact with LLM.')
def echo(update, context):
"""Echo the user message."""

View File

@ -6,6 +6,8 @@
pip install python-telegram-bot requests selenium Pillow
pip freeze > requirements.txt
pip install ....