{"id":16804847,"url":"https://github.com/ibug/actions-lambda-telegram-bot","last_synced_at":"2025-03-17T07:21:39.770Z","repository":{"id":126486536,"uuid":"397969061","full_name":"iBug/actions-lambda-telegram-bot","owner":"iBug","description":"Deploy a Telegram bot on AWS Lambda from GitHub Actions automatically","archived":false,"fork":false,"pushed_at":"2021-08-19T16:28:31.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T16:39:57.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/iBug.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":"2021-08-19T14:20:01.000Z","updated_at":"2021-08-19T16:28:33.000Z","dependencies_parsed_at":"2023-06-17T00:00:24.475Z","dependency_job_id":null,"html_url":"https://github.com/iBug/actions-lambda-telegram-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":"iBug/actions-lambda-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Factions-lambda-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Factions-lambda-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Factions-lambda-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Factions-lambda-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBug","download_url":"https://codeload.github.com/iBug/actions-lambda-telegram-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989713,"owners_count":20379648,"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":[],"created_at":"2024-10-13T09:46:16.960Z","updated_at":"2025-03-17T07:21:39.765Z","avatar_url":"https://github.com/iBug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram bot on AWS Lambda with GitHub Actions deploy template\n\nA webhook-based Telegram bot, every push to the master branch automatically deployed to AWS Lambda with GitHub Actions\n\n## Setup\n\nGo to [AWS Lambda console](https://console.aws.amazon.com/lambda/home) and create a new function. Select runtime as Python 3.8 and configure triggers as needed. If you need a more detailed guide, check out [my blog](https://ibug.io/p/41) for configuring API Gateway with Lambda.\n\nGo to [AWS IAM console](https://console.aws.amazon.com/iam/home) and create a new policy. Here's an example JSON that you can copy:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:PutObject\",\n        \"iam:ListRoles\",\n        \"lambda:UpdateFunctionCode\",\n        \"lambda:CreateFunction\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}\n```\n\nAlso on the IAM console, create a new user and attach the policy from the above step. Create a pair of access keys for the new user.\n\n[Create a new repo](https://github.com/iBug/actions-lambda-telegram-bot/generate) from this template. Go to the Settings tab of your new repository and add the following secrets:\n\n| Name | Description |\n| :--: | :---------: |\n| `AWS_ACCESS_KEY_ID` | AWS access key ID |\n| `AWS_SECRET_ACCESS_KEY` | AWS secret access key |\n| `AWS_FUNCTION_NAME` | Name of your Lambda function |\n\nNow write your code and push. GitHub Actions should automatically deploy your code to your specified function.\n\nBe aware that non-secret environment variables configured for your Lambda function will be printed out. You can edit [`Makefile`](Makefile) as needed.\n\n## License\n\n[The MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibug%2Factions-lambda-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibug%2Factions-lambda-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibug%2Factions-lambda-telegram-bot/lists"}