{"id":26055734,"url":"https://github.com/nopp/telegram-bot-ec2","last_synced_at":"2026-05-15T01:38:19.231Z","repository":{"id":145512669,"uuid":"119182765","full_name":"nopp/telegram-bot-ec2","owner":"nopp","description":"Telegram Bot for EC2","archived":false,"fork":false,"pushed_at":"2020-06-09T18:40:23.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-06T00:31:48.439Z","etag":null,"topics":["aws","ec2","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nopp.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,"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":"2018-01-27T16:48:13.000Z","updated_at":"2024-08-09T08:07:52.000Z","dependencies_parsed_at":"2023-04-04T21:33:30.105Z","dependency_job_id":null,"html_url":"https://github.com/nopp/telegram-bot-ec2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nopp/telegram-bot-ec2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopp%2Ftelegram-bot-ec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopp%2Ftelegram-bot-ec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopp%2Ftelegram-bot-ec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopp%2Ftelegram-bot-ec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nopp","download_url":"https://codeload.github.com/nopp/telegram-bot-ec2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopp%2Ftelegram-bot-ec2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33050506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["aws","ec2","telegram","telegram-bot"],"created_at":"2025-03-08T10:20:57.267Z","updated_at":"2026-05-15T01:38:19.222Z","avatar_url":"https://github.com/nopp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot for EC2\n\n![Code scanning - action](https://github.com/nopp/telegram-bot-ec2/workflows/Code%20scanning%20-%20action/badge.svg)\n\nThis bot have two actions: start/stop EC2 instance, basically the script will check on mysql database if user have permission to stop/start a specific instance.\n\n* Import schema.sql on MySQL.\n* Create a bot token on Telegram.\n\n## INSTALL\n\n* git clone https://github.com/nopp/telegram-bot-ec2.git\n* cd telegram-bot-ec2\n* pip install -r requirements.txt\n\nExample: We'll allow email user@teste.com with 123456 password to start/stop an instance i-1212121212121.\n\nCreate an user on user table\n============================\n* INSERT INTO user VALUES ('user@teste.com',MD5('123456'))\n  \nCreate \"link\" between idUser and idInstance\n===========================================\n* SELECT id FROM user WHERE email = 'user@test.com'\n* 1\n* INSERT INTO resource VALUES ('1','i-1212121212121') \n\nRUNNING BOT\n===========\n\n\t# python ec2bot.py telegramToken ec2Region accessKey secretKey mysqlHost mysqlUser mysqlPassword mysqlDB \n\nRUNNING ON DOCKER\n=================\n\n\t# docker container run -d -e token='xxx' -e region='xxx' -e akey='accessKey' -e skey='secretKey' -e mysqlHost='xxx' -e mysqlUser='xxx' -e mysqlPassword='xxx' -e mysqlDB='xxx' nopp/telegram-bot-ec2:latest\n\n\nSCREENSHOT\n==========\n![Image Alt](http://i63.tinypic.com/2nsbdx4.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopp%2Ftelegram-bot-ec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnopp%2Ftelegram-bot-ec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopp%2Ftelegram-bot-ec2/lists"}