{"id":19637429,"url":"https://github.com/karthikmprakash/temp-e-mail-telegram-bot","last_synced_at":"2026-06-03T23:31:32.293Z","repository":{"id":50125739,"uuid":"370475198","full_name":"karthikmprakash/Temp-e-mail-Telegram-Bot","owner":"karthikmprakash","description":"A handy bot to fetch temporary emails for your next Signup!","archived":false,"fork":false,"pushed_at":"2021-07-08T09:36:32.000Z","size":1177,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"features","last_synced_at":"2025-01-09T17:05:02.483Z","etag":null,"topics":["heroku","python","server","software-development","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karthikmprakash.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}},"created_at":"2021-05-24T20:20:59.000Z","updated_at":"2023-11-23T20:01:07.000Z","dependencies_parsed_at":"2022-08-30T04:42:08.787Z","dependency_job_id":null,"html_url":"https://github.com/karthikmprakash/Temp-e-mail-Telegram-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthikmprakash%2FTemp-e-mail-Telegram-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthikmprakash%2FTemp-e-mail-Telegram-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthikmprakash%2FTemp-e-mail-Telegram-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthikmprakash%2FTemp-e-mail-Telegram-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karthikmprakash","download_url":"https://codeload.github.com/karthikmprakash/Temp-e-mail-Telegram-Bot/tar.gz/refs/heads/features","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941509,"owners_count":19882062,"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":["heroku","python","server","software-development","telegram","telegram-bot"],"created_at":"2024-11-11T12:34:30.756Z","updated_at":"2026-06-03T23:31:32.246Z","avatar_url":"https://github.com/karthikmprakash.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/othneildrew/Best-README-Template\"\u003e\n    \u003cimg src=\"./image/logo_enhanced.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003etemp-e-mail\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A handy bot to fetch temporary emails for your next Signup!\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/karthikmprakash/Temp-e-mail-Telegram-Bot\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/karthikmprakash/Temp-e-mail-Telegram-Bot/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/karthikmprakash/Temp-e-mail-Telegram-Bot/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n# Temporary Email genration with Telegram Bot: Overview \n* Created a bot to generate username ,  temporary email and password for websites that could potentially track your personal data.\n* It uses the 10minmail service to generate a new email instance and returns back to the user. \n* Users can easily interact with the bot with the Markup Keyboard that primarily focuses on the Bot's features\n* Uses webhooks instead of polling to increase the bots response time and for effecient requests handling\n\n## Code and Resources Used \n**Python Version:** 3.7  \n**Packages:** python-telegram-bot requests beautifulsoup4 python-dotenv urllib3   \n**For Web Framework Requirements:**  ```pip install -r requirements.txt```  \n**Pyhton-telegram-bot Github:** https://github.com/python-telegram-bot/python-telegram-bot    \n**Telegram Bot API:** https://core.telegram.org/bots/api#message   \n**Telegram Bot Documentation:** https://python-telegram-bot.readthedocs.io/en/stable/index.html  \n**Telegram Webhooks:** https://github.com/gcatanese/TelegramBotDemo/blob/main/telegram_bot/telegram_bot.py    \n**Run on Boot(Linux):** https://tecadmin.net/setup-autorun-python-script-using-systemd/\n\n## Usage\n* git clone https://github.com/karthikmprakash/Temp-e-mail-Telegram-Bot.git\n* edit the file `main.py` by adding your telegram bot API Token\n* Then in the terminal ```bash python3 main.py``` , your bot should start sending responses\n\n### To run the script on system reboot (Ubuntu)\n1. Have the python application ready\n2. Create a [Service File](https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files)\n    - The file must have .service extension under /lib/systemd/system/ directory\n    - ```bash \n      sudo vi /lib/systemd/system/telegram_bot.service\n      ```\n    - and add the following content in it. Change Python script filename ad location. Also update the Description.\n    - ```bash\n      [Unit]\n      Description=Dummy Service\n      After=multi-user.target\n      Conflicts=getty@tty1.service\n\n      [Service]\n      Type=simple\n      ExecStart=/usr/bin/python3 /home/user-directory/path-to-python-script\n      StandardInput=tty-force\n\n      [Install]\n      WantedBy=multi-user.target\n      ```\n3. Enable Newly Added Service\n    - Your system service has been added to your service. Let’s reload the systemctl daemon to read new file. You need to reload this deamon each time after making any changes         in in .service file.\n    - ```bash\n      sudo systemctl daemon-reload\n      ```\n    - Now enable the service to start on system boot, also start the service using the following commands.\n    - ```bash\n      sudo systemctl enable telegram_bot.service\n      sudo systemctl start telegram_bot.service\n      ```\n    - Finally check the status of your service as following command\n    - ```bash\n      sudo systemctl status telegram_bot.service\n      ```\n\n## Working Model  \n\n\u003e Anyone can make use of the bot by searching for **@temp_e_mail_bot** in the telegram messenger\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./image/Screenshot1.jpg\" width=\"250\" height=\"Auto\"\u003e\u003cimg src=\"./image/Screenshot2.jpg\" width=\"250\" height=\"Auto\"\u003e\u003cimg src=\"./image/Screenshot3.jpg\" width=\"250\" height=\"Auto\"\u003e\n\n## Productionization \nThere are bunch of different ways to get the bot up and working. Its feasible to use polling while testing the bot in the local environment but once its in the production stage ,its better to use webhooks with a cloud server. You can build your own too!\n\n  * Deployment on a Raspberry Pi\n  * IAAS Servers for ex: Amazon AWS EC2 , MS Azure\n  * PAAS Server for ex: Heroku , Rackspace \n \n \n\n\n\n\n\n\n\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=for-the-badge\n[contributors-url]: https://github.com/othneildrew/Best-README-Template/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=for-the-badge\n[forks-url]: https://github.com/karthikmprakash/Temp_email_Telegram_bot/network/members\n[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=for-the-badge\n[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers\n[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=for-the-badge\n[issues-url]: https://github.com/othneildrew/Best-README-Template/issues\n[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge\n[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://linkedin.com/in/othneildrew\n[product-screenshot]: images/screenshot.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarthikmprakash%2Ftemp-e-mail-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarthikmprakash%2Ftemp-e-mail-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarthikmprakash%2Ftemp-e-mail-telegram-bot/lists"}