{"id":19396409,"url":"https://github.com/returnfi/telegram-support-bot","last_synced_at":"2025-07-05T11:37:09.789Z","repository":{"id":248927203,"uuid":"830200196","full_name":"ReturnFI/Telegram-Support-Bot","owner":"ReturnFI","description":"Telegram Support Bot","archived":false,"fork":false,"pushed_at":"2024-07-25T18:30:11.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-10T10:41:35.388Z","etag":null,"topics":["pytelegrambotapi","support-bot","telebot-telegrambotapi","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ReturnFI.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":"2024-07-17T19:51:01.000Z","updated_at":"2024-08-22T19:58:05.000Z","dependencies_parsed_at":"2024-07-18T00:21:02.032Z","dependency_job_id":"f72ae1bf-bcb1-49ec-ab67-ec164b5edff5","html_url":"https://github.com/ReturnFI/Telegram-Support-Bot","commit_stats":null,"previous_names":["returnfi/groupbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FTelegram-Support-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FTelegram-Support-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FTelegram-Support-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FTelegram-Support-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReturnFI","download_url":"https://codeload.github.com/ReturnFI/Telegram-Support-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232860830,"owners_count":18587839,"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":["pytelegrambotapi","support-bot","telebot-telegrambotapi","telegram-bot","telegram-bot-api"],"created_at":"2024-11-10T10:35:00.024Z","updated_at":"2025-01-07T10:23:15.244Z","avatar_url":"https://github.com/ReturnFI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Support Bot\nThis is a Telegram bot designed to facilitate communication between users and a support team. The bot allows users to send messages or photos to a specific group thread, where the support team can respond.\n\n## Features\n\n- Users can start a support session by providing a group chat ID and thread ID.\n- The bot forwards user messages and photos to the specified group thread.\n- The support team can reply to user messages, and the bot forwards the responses back to the user.\n- The bot can generate a join link for specific group threads.\n\n## Requirements\n\n- Python 3.6+\n- `pyTelegramBotAPI` library\n- `python-dotenv` library\n\n## Installation\n1. Clone the repository:\n``` shell\ngit clone https://github.com/ReturnFI/Telegram-Support-Bot.git\ncd Telegram-Support-Bot\n```\n\n2. Install the required libraries:\n```python\npip install pyTelegramBotAPI python-dotenv\n```\n\n3. Create a `.env` file in the root directory of the project and add your Telegram bot token:\n```\nTELEGRAM_BOT_TOKEN=your_telegram_bot_token\n```\n\n## Usage\n1. Start the bot:\n```python\npython main.py\n```\n\n## Commands\n1. `/start \u003cgroup_chat_id\u003e_\u003cthread_id\u003e`\n - Starts a support session. The user needs to provide a valid `group_chat_id` and `thread_id`\n2. `/join`\n - Used in a supergroup thread to generate a join link for that specific thread. The link can be shared with users to allow them to join the support session.\n - This command should be used within a thread in the group.\n\n## Functionality\n\n1. Handling user messages and photos:\n- The bot will forward user messages and photos to the specified group thread.\n- The forwarded message will include the user's username and ID for reference.\n2. Handling replies from the support team:\n- The support team can reply to the user's message by using the /welcome command followed by their message.\n- Example: `/welcome Thank you for reaching out. How can we assist you today?`\n- The bot will forward the support team's reply back to the user.\n\n## Contributing\nFeel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freturnfi%2Ftelegram-support-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freturnfi%2Ftelegram-support-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freturnfi%2Ftelegram-support-bot/lists"}