chatgpt-telegram
Installation
on unix like platform, install chatgpt-telegram with the following command.
python3 -m pip install -U chatgpt-telegram
playwright install firefox
on the Windows platform, use the following command to install chatgpt-telegram:
python -m pip install -U chatgpt-telegram
playwright install firefox
configuration
You can start this bot with the following command:
python3 -m chatgpt_telegram bot-config.yaml
On the Windows platform, with the following command:
python -m chatgpt_telegram bot-config.yaml
which bot-config.yaml contains telegram bot configuration and chatgpt accounts as shown below.
telegram_api_key: ""
accounts:
- user: ""
psw: ""
telegram_api_key section specify telegram bot api key. accounts section specify chatgpt test accounts. user field can not be empty, but you can leave psw to empty. If it is left empty, the user will need to manually enter the password upon login. Multiple accounts can be specified in the accounts section to improve ChatGPT responses.
If you are running a bot in a server, you need to install Xvfb on the server, and use VNC at the client side to connect to Xvfb. For more information, refer to Remote_control_over_SSH.
After you start this bot, send /start to bot to start the initialization process, which will pop up a browser navigating to https://chat.openai.com/chat. On the first time you start the browser, you need to handle the login processes. Some automated processes such as auto-filling of account names and passwords will be carried out, but you will still need to manually solve CAPTCHAs during the login process.
Acknowledgements
Metadata
Release files for chatgpt-telegram 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chatgpt-telegram-0.1.4.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatgpt_telegram-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / chatgpt-telegram-0.1.4.tar.gz
| Download URL | chatgpt-telegram-0.1.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c4c90adce141b88365fec1cbbdcd643597d841dfd5d0048265f915847cbbb22
|
|
BLAKE2b-256 checksum How to use checksums |
03e98cc95b58f148b60b6efb562df6f5b7c61c86cdbd1eb66661b1c99b584896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / chatgpt_telegram-0.1.4-py3-none-any.whl
| Download URL | chatgpt_telegram-0.1.4-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b5dac8e88b09e392126acab3e530813593e7f1f40cfc0167135b28665e1853b
|
|
BLAKE2b-256 checksum How to use checksums |
e91eeca230b5f0d7b5104b952f4c0c27576009a14adf4e0a9ee2bb99adb08b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|