{"id":16317070,"url":"https://github.com/simatwa/telegram-chatbots","last_synced_at":"2025-04-08T13:32:47.370Z","repository":{"id":213093347,"uuid":"732955776","full_name":"Simatwa/telegram-chatbots","owner":"Simatwa","description":"Personal Telegram bot for ChatGPT and Bard","archived":false,"fork":false,"pushed_at":"2023-12-22T18:02:22.000Z","size":334,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T00:53:14.995Z","etag":null,"topics":["bard","bard-bot","bot","bots","chatgpt","chatgpt-bot","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simatwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-18T08:40:48.000Z","updated_at":"2024-07-16T13:12:18.000Z","dependencies_parsed_at":"2023-12-21T13:24:31.636Z","dependency_job_id":"ea8ce3e4-700f-4bd9-8a56-05cf3ae9b294","html_url":"https://github.com/Simatwa/telegram-chatbots","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"6728847db517a154a4cc77bdef36259e0d5c4d30"},"previous_names":["simatwa/telegram-chatbots"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simatwa%2Ftelegram-chatbots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simatwa%2Ftelegram-chatbots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simatwa%2Ftelegram-chatbots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simatwa%2Ftelegram-chatbots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simatwa","download_url":"https://codeload.github.com/Simatwa/telegram-chatbots/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223320327,"owners_count":17126090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bard","bard-bot","bot","bots","chatgpt","chatgpt-bot","telegram-bot"],"created_at":"2024-10-10T22:06:30.796Z","updated_at":"2024-11-06T10:39:07.644Z","avatar_url":"https://github.com/Simatwa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e telegram-chatbots \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://https://github.com/Simatwa/telegram-chatbots/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"/\u003e\u003c/a\u003e\n\u003c!--\u003ca href=\"https://github.com/Simatwa/telegram-chatbots/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/Simatwa/telegram-chatbots/total?label=Downloads\u0026color=success\u0026logo=github\" alt=\"Downloads\"\u003e\u003c/img\u003e\u003c/a\u003e --\u003e\n\u003ca href=\"https://github.com/Simatwa/telegram-chatbots/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/Simatwa/telegram-chatbots?color=success\u0026logo=github\u0026label=Release\" alt=\"Latest release\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Simatwa/telegram-chatbots/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release-date/Simatwa/telegram-chatbots?logo=github\u0026label=Release date\" alt=\"release date\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg alt=\"Black\" src=\"https://img.shields.io/static/v1?logo=Black\u0026label=Code-style\u0026message=Black\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://wakatime.com/badge/github/Simatwa/telegram-chatbots\"\u003e\u003cimg src=\"https://wakatime.com/badge/github/Simatwa/telegram-chatbots.svg\" alt=\"wakatime\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Simatwa/telegram-chatbots/blob/main/assets/demo.png?raw=true\" width=\"60%\" height=\"auto\" alt=\"Bot Demo\"\u003e \n\u003c/p\u003e\n\nUnofficial Telegram bot for ChatGPT and Bard \n\n## Features \n\n* Intergratin with [Bard](https://bard.google.com)\n* Intergration with [ChatGPT](https://chat.openai.com)\n* Parse [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) on the fly.\n\n## Pre-requisites \n\n1. [Python](https://python.org)\u003e=3.10 Installed\n2. [Telegram Bot token](https://core.telegram.org/bots#botfather)\n\n## Installation\n\nClone and install dependencies\n\n```\ngit clone https://github.com/Simatwa/telegram-bots\ncd telegram-chatbots\npip install -r requirements.txt\n```\n\n## Usage\n\nIt is presumed that you're in possession of [Telegram Bot Token](https://telegram/), if that's not the case then have one from [@BotFather](https://core.telegram.org/bots#botfather).\n\nSince this script depends on [GoogleBard](https://github.com/acheong08/Bard) and [WebChatGPT](https://github.com/Simatwa/WebChatGPT) libraries, purpose to walkthrough their documentations then use that knowledge to find the required information stated in the [env](env) file.\n\nThey include :\n\n| Variable | Info |\n| ---------- | ------- |\n| [bard](https://github.com/acheong08/Bard)  | Google's bard session key |\n| [openai_cookie_file](https://github.com/Simatwa/WebChatGPT) | Path to openai-cookie-file.json | \n\nAfter filling the [env](env) file, rename it to `.env` and vallah! You're just one step away.\n\nSince this is a **personal** bot, you have to uniquely identify yourself with the bot, so you'll be required to hunt down your **user id**. \n\nSo fire up the bot, `python user_id.py` and  then on the chat panel, send this command `myId` inorder for the bot to echo back your *Telegram's User ID*. Add the id to the [`.env`](env) file as `users_id=\u003cuser-id\u003e`. If you would like multiple users to access the bot, add their IDs as well separated by commas. i.e `users_id=11223344,55667788`.\n\nSimply run `python main.py` and have some fun.\n\n## Disclaimer\n\nThe code in this repository is an unofficial implementation and integration of OpenAI's ChatGPT and Bard models. It is not endorsed or supported by either partys. In addition, this code might not reflect the latest practices or updates from them. It is provided as-is, and there are no guarantees regarding its performance, reliability, or security. Use it at **Your Own Risk**. The developer of this repository disclaim any liability for the usage or consequences of utilizing these scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimatwa%2Ftelegram-chatbots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimatwa%2Ftelegram-chatbots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimatwa%2Ftelegram-chatbots/lists"}