️ ⚠️ WARNING FOR YOU ️ ️⚠️
chatgpt is used to help your account activities on Telegram
We are not responsible for what you misuse in this repository
! Be careful when using this repository!
If one of the members misuses this repository, we are forced to ban you
Never ever abuse this repository
- Go to github, your fork
- Delete your fork. If you didn't fork, go to step
- Fork repo.
- edit 👉 config.py
- Go to heroku
- Desktop view
- Go to deploy tab
- Connect your github account
- Deploy Main branch.
Rendy@Ubuntu~ $ git clone https://github.com/TeamKillerX/chatgpt-bot
Rendy@Ubuntu~ $ cd chatgpt-bot
Rendy@Ubuntu~ $ pip3 install -r requirements.txt
Rendy@Ubuntu~ $ nano config.py
Rendy@Ubuntu~ $ python3 bot.py
# chatGPT-3
payload = {
"model": "text-davinci-003",
"prompt": "Hello World",
"max_tokens": 200,
"temperature": 0,
"top_p": 1,
"n": 1,
"stream": False,
"logprobs": None,
"stop": None
}
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {OPENAI_API}"
}
url = "https://api.openai.com/v1/completions"
response = requests.post(url, json=payload, headers=headers)
data_example = response.json()
message_text = data_example["choices"][0]["text"]
await message.edit_text(message_text) # await or client.send_message(message.chat.id, message_text, reply_to_message_id=message.id)
you can pull requests here https://github.com/TeamKillerX/chatgpt-bot/pulls
https://github.com/TeamKillerX/chatgpt-bot