Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinsenal0x64 committed Jul 31, 2023
1 parent a5dfe1b commit d2e016d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def index():
return {"STATUS": "RUNNING"}



@main.route(f'/{telegram_token}', methods=['POST'])
def handle_telegram_webhook():
update = telebot.types.Update.de_json(request.stream.read().decode('utf-8'))
Expand Down Expand Up @@ -635,7 +634,7 @@ def cha_gpt_cus(message):

headers = {
"Authorization":
"Bearer YOUR_API_KEY_HERE", # Replace with your GPT-3.5 API key
f"Bearer {open_api}", # Replace with your GPT-3.5 API key
"Content-Type":
"application/json",
"User-Agent":
Expand Down

0 comments on commit d2e016d

Please sign in to comment.