diff --git a/README.md b/README.md index 6eb9251..abadf2c 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,30 @@ Once you have the valid tokens, replace "API_TOKEN_BOT" with the provided Telegr By making these replacements, you will set the values of the tgBot_token and openAi_token variables according to the required API tokens for your application. +If the .env file does not exist, create a duplicate of the .env.example file then change the name to .env + +### Change reply message + +You can change reply message on + +``` +async def welcome(message: types.Message): + await message.reply( + "FILL_CHAT_MESSAGE_HERE" + ) +``` + +Or message with a separate chat bubble + +``` + async def welcome(message: types.Message): + await message.reply( + "FILL_CHAT_MESSAGE_HERE" + ) + await message.reply( + "FILL_CHAT_MESSAGE_HERE" + ) +``` # Support Us diff --git a/main.py b/main.py index 5fd2797..3c7b1a1 100644 --- a/main.py +++ b/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)