{"id":13988683,"url":"https://github.com/thesarthakjain/telegram_bot","last_synced_at":"2025-07-22T09:31:23.339Z","repository":{"id":45090667,"uuid":"423429352","full_name":"thesarthakjain/telegram_bot","owner":"thesarthakjain","description":"This is a personal telegram bot. Hosted locally on a 'Raspberry Pi 4 Model-B 4GB' and an 'Android Mobile Device' (for battery backup).","archived":false,"fork":false,"pushed_at":"2022-10-14T06:44:12.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-29T07:36:51.409Z","etag":null,"topics":["bot","python","raspberry-pi","telegram","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesarthakjain.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-01T10:49:35.000Z","updated_at":"2023-11-19T15:45:14.000Z","dependencies_parsed_at":"2023-01-20T01:17:07.626Z","dependency_job_id":null,"html_url":"https://github.com/thesarthakjain/telegram_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesarthakjain/telegram_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesarthakjain%2Ftelegram_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesarthakjain%2Ftelegram_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesarthakjain%2Ftelegram_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesarthakjain%2Ftelegram_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesarthakjain","download_url":"https://codeload.github.com/thesarthakjain/telegram_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesarthakjain%2Ftelegram_bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465072,"owners_count":23933055,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","python","raspberry-pi","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-08-09T13:01:18.480Z","updated_at":"2025-07-22T09:31:23.038Z","avatar_url":"https://github.com/thesarthakjain.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003ch1 align=\"center\"\u003e Telegram Bot \u003c/h1\u003e\n\u003c/p\u003e\n\n## Description\n\nThis is a telegram bot that can be used as a template for personal telegram bot.\n\n## Telegram API Token Generation\n\n1. First you will need to create a personal telegram account and then search for `@BotFather`. Then type the command - `/newbot`\n\n1. After that, enter the `username` for the bot.\n\n1. The `@BotFather` will give you the API Token for the bot.\n\n## Getting started with the Telegram-Bot\n\n1. Make sure you are in the project directory: \n\n        cd /path/to/telegram_bot\n        \n2. Install the requirements: \n\n        pip3 install -r requirements.txt\n\n3. Creating `config.yaml` file manually - This step could be skipped as running the bot without this file will automatically generate it for you.\n\n\t```yaml\n\ttoken: \u003cput the bot token here\u003e\n\tbot_admin: \u003cbot admin username\u003e\n\ttrusted_users: \u003ctrusted user's username\u003e\n\t```\n\tThe `bot.py` will also generate the `saved` folder inside the project directory. \n\tAll the files that the trusted_users and admins send to the bot via telegram chat will be stored here.\n\n4. Run the bot: \n\n        python3 bot.py\n\n5. To Stop the bot: \n\n        ctrl + c\n\n## Bot Functions\n\n#### There are 3 levels of privileges for the functions:\n1. General User - U\n1. Trusted User - TU\n1. Admin - AU\n\n|Function Name|Description|Privilege|\n|:---|:---|:---:|\n|   /start |   Welcome message |    U   |\n|   /help  |   help message    |   U   |\n|   /contact    |   Bot Admin Info  |   U   |\n|   /ig_dp `\u003cinsta username\u003e` |   Download Instagram DP   |   U   |\n|   /list   |   List all the saved files    |   TU   |\n|   /print `\u003cS.No. of file in list\u003e` |   Print a saved file  |   TU  |\n|   /print_range `\u003cS.No. of file\u003e` `\u003cRange\u003e` |   Print a range of pages from a saved file  |   TU  |\n|   Upload a file | Downloads and saves the file locally | TU |\n| /add_trusted `\u003cusername\u003e` | Add new trusted user to list | AU |\n| /add_admin `\u003cusername\u003e` | Add new bot admin to list | AU |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesarthakjain%2Ftelegram_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesarthakjain%2Ftelegram_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesarthakjain%2Ftelegram_bot/lists"}