{"id":31227540,"url":"https://github.com/onair-santa/telegram_pm_chatbot","last_synced_at":"2025-10-29T08:12:06.797Z","repository":{"id":315662775,"uuid":"1060066100","full_name":"Onair-santa/Telegram_PM_chatbot","owner":"Onair-santa","description":"A lightweight and fast personal messaging bot. With user ban and counting capabilities. Anonymous support bot","archived":false,"fork":false,"pushed_at":"2025-09-19T21:59:59.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-20T00:46:31.354Z","etag":null,"topics":["bot","pmbot","pyrogram","python","support","telegram"],"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/Onair-santa.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T10:35:42.000Z","updated_at":"2025-09-19T22:00:02.000Z","dependencies_parsed_at":"2025-09-20T00:46:47.878Z","dependency_job_id":"b47cde11-5b32-48cf-8b61-6c50ec0ee9b2","html_url":"https://github.com/Onair-santa/Telegram_PM_chatbot","commit_stats":null,"previous_names":["onair-santa/telegram_pm_chatbot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Onair-santa/Telegram_PM_chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onair-santa%2FTelegram_PM_chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onair-santa%2FTelegram_PM_chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onair-santa%2FTelegram_PM_chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onair-santa%2FTelegram_PM_chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Onair-santa","download_url":"https://codeload.github.com/Onair-santa/Telegram_PM_chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onair-santa%2FTelegram_PM_chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276348309,"owners_count":25626605,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","pmbot","pyrogram","python","support","telegram"],"created_at":"2025-09-22T04:47:27.627Z","updated_at":"2025-10-29T08:12:06.791Z","avatar_url":"https://github.com/Onair-santa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📥Telegram_PM_chatbot\nA lightweight and fast personal messaging bot. With user ban and counting capabilities. Anonymous support bot\n## 💠 USAGE\n\n- Users can pm to the bot via text or media messages\n- Bot will send the message to the admin user id as pm.\n- The replied message will be sent to the user as pm in the bot.\n\n## 💠 Install on Linux VPS :\n- Change config.py\n```\n    TG_BOT_TOKEN = os.environ.get(\"TG_BOT_TOKEN\",\"38928:G2y9Vo\")  #  @BotFather\n    API_ID = int(os.environ.get(\"API_ID\",\"123456789\"))            #  https://my.telegram.org\n    API_HASH = os.environ.get(\"API_HASH\",\"cc1cd057a36901ff025\")   #  https://my.telegram.org\n    ADMIN = int(os.environ.get(\"ADMIN\",\"123456789\"))              #  Owner ID  \n``` \n- Virtual env\n```\napt install virtualenv\nvirtualenv -p python3 venv\n. ./venv/bin/activate\npip3 install -r requirements.txt\npython3 bot.py\n```\n- Service\n```\ncd /etc/systemd/system/\nnano pmchat.service\n```\n```\n[Unit]\nDescription=pmchat\nAfter=network.target\n[Service]\nUser=root\nWorkingDirectory=/home/ME/pmchat\nEnvironment=\"PYTHONPATH=/home/ME/pmchat/\"\nExecStart=/home/ME/pmchat/venv/bin/python3 /home/ME/pmchat/bot.py --serve-in-foreground\nRestartSec=10\nRestart=always\n[Install]\nWantedBy=multi-user.target\n```\n```\nsudo systemctl enable pmchat\nsudo systemctl start pmchat\nsudo systemctl stop pmchat\nsudo systemctl restart pmchat\nsudo systemctl status pmchat\n```\n💠Bot command\n```\n/user    user counter\n\nAdmin reply to a message\n/ban         ban\n/unban       unban\n/info        info\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonair-santa%2Ftelegram_pm_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonair-santa%2Ftelegram_pm_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonair-santa%2Ftelegram_pm_chatbot/lists"}