{"id":22432647,"url":"https://github.com/1999azzar/bard-powered-telegram-bot","last_synced_at":"2025-08-01T12:33:45.617Z","repository":{"id":175424599,"uuid":"653878602","full_name":"1999AZZAR/bard-powered-telegram-bot","owner":"1999AZZAR","description":"telegram bot that use google bard as its source of intelegent","archived":false,"fork":false,"pushed_at":"2024-11-19T13:37:26.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"ayaka-mori","last_synced_at":"2024-11-19T14:43:43.859Z","etag":null,"topics":["bard-ai","bot","chatbot","google-bard-python","python","telegram","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1999AZZAR.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-06-15T00:11:45.000Z","updated_at":"2024-11-19T13:37:22.000Z","dependencies_parsed_at":"2024-05-03T22:24:38.594Z","dependency_job_id":"86062583-d65e-43c8-8bbc-ccb944f05840","html_url":"https://github.com/1999AZZAR/bard-powered-telegram-bot","commit_stats":null,"previous_names":["1999azzar/bard-powered-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fbard-powered-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fbard-powered-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fbard-powered-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fbard-powered-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999AZZAR","download_url":"https://codeload.github.com/1999AZZAR/bard-powered-telegram-bot/tar.gz/refs/heads/ayaka-mori","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228377694,"owners_count":17910449,"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-ai","bot","chatbot","google-bard-python","python","telegram","telegram-bot"],"created_at":"2024-12-05T22:12:25.749Z","updated_at":"2024-12-05T22:12:26.421Z","avatar_url":"https://github.com/1999AZZAR.png","language":"Python","funding_links":["https://www.buymeacoffee.com/azzar"],"categories":[],"sub_categories":[],"readme":"# bard-powered-telegram-bot\n\n\u003cdiv\u003e\n   \u003ca href=\"https://colab.research.google.com/github/1999AZZAR/bard-powered-telegram-bot/blob/ayaka-mori/bard_telebot.ipynb\" target=\"_blank\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\" style=\"height: 30px !important;\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://www.buymeacoffee.com/azzar\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 30px !important;\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nThis repository contains code for a chatbot implemented in Python using the Telegram Bot API. The chatbot is designed to respond to user messages and provide assistance based on the input.\n\n## Prerequisites\n\nTo run the chatbot, ensure you have the following:\n\n1. Python 3.7 or above installed on your machine.\n2. `python-telegram-bot` library. Install it using `pip install python-telegram-bot`.\n3. A Telegram bot token. You can obtain one by creating a new bot through the BotFather on Telegram. Note down the bot token for later use.\n\n## Installation\n\n1. Clone the repository to your local machine or download the source code.\n2. Install the required dependencies by running `pip install -r requirements.txt` in the project directory.\n3. Set up environment variables:\n   - Create a `.env` file in the project directory.\n   - Add the following variables to the `.env` file:\n\n     ```text\n     # Your Telegram bot token obtained using @BotFather\n     TELEGRAM_BOT_TOKEN=\"\u003cyour_telegram_bot_token\u003e\" #telegram bot token\n     \n     # bard token\n     Secure_1PSID=\"\u003c__secure_1PSID\u003e\"\n     Secure_1PSIDTS=\"\u003c__secure_1PSIDTS\u003e\"\n     \n     # telegram user id obtained using @userinfobot\n     USER_ID='*' # comma for separation, '*' to enable all user\n     ```\n\n     Replace `\u003cyour_bard_token\u003e` with the token for your Bard chatbot and `\u003cyour_telegram_bot_token\u003e` with the token for your Telegram bot. `\u003cyour_user_id\u003e` should be replaced with your Telegram user ID.\n4. Run the chatbot by executing `python main.py`.\n\n## File Structure\n\nThe repository has the following structure:\n\n```text\nmain.py\n.env\nREADME.md\nrequirements.txt\n```\n\n- `main.py`: The main file that contains the implementation of the chatbot, sets up the Telegram bot, handles incoming messages, and triggers the chatbot for generating responses.\n\n## Usage\n\n1. Start the bot by running `python main.py`.\n2. Open the Telegram app and search for your bot using the username you assigned to it during creation.\n3. Start a chat with the bot and interact with it by sending messages.\n4. The bot will process your input and provide a response based on the implemented logic.\n5. You can use the `/start` command to initiate a conversation with the bot.\n6. If you need to reset the chat history, you can use the `/reset` command.\n\nNote: The bot will only respond to authorized users whose Telegram user ID matches the one specified in the `.env` file.\n\n## Customization\n\nYou can customize the behavior and responses of the chatbot by modifying the code in `main.py`. You can add new functionalities or change the logic to suit your requirements.\n\n## Contribution\n\nContributions to the project are welcome. If you encounter any issues or have suggestions for improvement, please submit an issue or a pull request to the repository.\n\n## Acknowledgements\n\n[![CodeFactor](https://www.codefactor.io/repository/github/1999azzar/bard-powered-telegram-bot/badge)](https://www.codefactor.io/repository/github/1999azzar/bard-powered-telegram-bot)\n\nThe code in this repository was developed based on the Python-Telegram-Bot library and follows best practices for Telegram bot development.\n\nIf you have any questions or need further assistance, please don't hesitate to reach out. Enjoy using the chatbot!.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fbard-powered-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999azzar%2Fbard-powered-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fbard-powered-telegram-bot/lists"}