chatgpt-telegram


Namechatgpt-telegram JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/learnforpractice/chatgpt-telegram
SummaryChatGPT Bot For telegram
upload_time2023-01-13 09:38:40
maintainer
docs_urlNone
authorlearnforpractice
requires_python
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # chatgpt-telegram

# Installation

on unix like platform, install `chatgpt-telegram` with the following command.

```bash
python3 -m pip install -U chatgpt-telegram
playwright install firefox
```

on the Windows platform, use the following command to install `chatgpt-telegram`:

```bash
python -m pip install -U chatgpt-telegram
playwright install firefox
```

# configuration

You can start this bot with the following command:

```bash
python3 -m chatgpt_telegram bot-config.yaml
```

On the Windows platform, with the following command:

```bash
python -m chatgpt_telegram bot-config.yaml
```

which bot-config.yaml contains telegram bot configuration and chatgpt accounts as shown below.

```yaml
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](https://en.wikipedia.org/wiki/Xvfb#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

- [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api)
- [chatGPT-telegram-bot](https://github.com/altryne/chatGPT-telegram-bot)
- [ChatGPT](https://github.com/ChatGPT-Hackers/ChatGPT)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/learnforpractice/chatgpt-telegram",
    "name": "chatgpt-telegram",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "learnforpractice",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/2f/e3/32b97a736c0a036ab50a01bfcb40dcac0bc5bad86ad11fd1f0d626bdfe9e/chatgpt-telegram-0.1.2.tar.gz",
    "platform": null,
    "description": "# chatgpt-telegram\n\n# Installation\n\non unix like platform, install `chatgpt-telegram` with the following command.\n\n```bash\npython3 -m pip install -U chatgpt-telegram\nplaywright install firefox\n```\n\non the Windows platform, use the following command to install `chatgpt-telegram`:\n\n```bash\npython -m pip install -U chatgpt-telegram\nplaywright install firefox\n```\n\n# configuration\n\nYou can start this bot with the following command:\n\n```bash\npython3 -m chatgpt_telegram bot-config.yaml\n```\n\nOn the Windows platform, with the following command:\n\n```bash\npython -m chatgpt_telegram bot-config.yaml\n```\n\nwhich bot-config.yaml contains telegram bot configuration and chatgpt accounts as shown below.\n\n```yaml\ntelegram_api_key: \"\"\naccounts:\n - user: \"\"\n   psw: \"\"\n```\n\n`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.\n\nIf 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](https://en.wikipedia.org/wiki/Xvfb#Remote_control_over_SSH).\n\n\nAfter 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.\n\n# Acknowledgements\n\n- [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api)\n- [chatGPT-telegram-bot](https://github.com/altryne/chatGPT-telegram-bot)\n- [ChatGPT](https://github.com/ChatGPT-Hackers/ChatGPT)\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "ChatGPT Bot For telegram",
    "version": "0.1.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9dce0f103408aacb8064ef4934b7c4c4a87898a4d28f98b0fbe6903ec4712de1",
                "md5": "a579e18db85ab85322343640407d6747",
                "sha256": "5106cc1fc9fdb6c96c59881bfd710282b181a7102bd65c2940343f7224d01644"
            },
            "downloads": -1,
            "filename": "chatgpt_telegram-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a579e18db85ab85322343640407d6747",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10089,
            "upload_time": "2023-01-13T09:38:39",
            "upload_time_iso_8601": "2023-01-13T09:38:39.156764Z",
            "url": "https://files.pythonhosted.org/packages/9d/ce/0f103408aacb8064ef4934b7c4c4a87898a4d28f98b0fbe6903ec4712de1/chatgpt_telegram-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2fe332b97a736c0a036ab50a01bfcb40dcac0bc5bad86ad11fd1f0d626bdfe9e",
                "md5": "58e2f408206ffdf0dfdd4f02904f4f31",
                "sha256": "1f35c7c964092ad2ffc17e11b8ec7247c608d2ceb26424ea26ea4544c28486e5"
            },
            "downloads": -1,
            "filename": "chatgpt-telegram-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "58e2f408206ffdf0dfdd4f02904f4f31",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8718,
            "upload_time": "2023-01-13T09:38:40",
            "upload_time_iso_8601": "2023-01-13T09:38:40.465077Z",
            "url": "https://files.pythonhosted.org/packages/2f/e3/32b97a736c0a036ab50a01bfcb40dcac0bc5bad86ad11fd1f0d626bdfe9e/chatgpt-telegram-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-13 09:38:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "learnforpractice",
    "github_project": "chatgpt-telegram",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "chatgpt-telegram"
}
        
Elapsed time: 0.03113s