mirror of
https://github.com/twinpath/chatbot-telegram-with-openai.git
synced 2026-01-26 13:31:54 +07:00
Update Global
This commit is contained in:
4
main.py
4
main.py
@@ -2,7 +2,7 @@ import os
|
||||
import openai
|
||||
from dotenv import load_dotenv
|
||||
from aiogram import Bot, Dispatcher, executor, types
|
||||
# from keep_alive import keep_alive
|
||||
from keep_alive import keep_alive
|
||||
|
||||
load_dotenv()
|
||||
|
||||
@@ -57,6 +57,6 @@ async def gpt(message: types.Message):
|
||||
presence_penalty=0.0)
|
||||
await message.reply(response.choices[0].text)
|
||||
|
||||
# keep_alive()
|
||||
keep_alive()
|
||||
if __name__ == "__main__":
|
||||
executor.start_polling(dp)
|
||||
|
||||
Reference in New Issue
Block a user