{"id":16415449,"url":"https://github.com/fuadop/serverless-plugin-telegram-webhook","last_synced_at":"2025-10-26T19:31:55.344Z","repository":{"id":54842612,"uuid":"522664178","full_name":"fuadop/serverless-plugin-telegram-webhook","owner":"fuadop","description":"serverless plugin to set your lambda api gateway url as your telegram bot webhook.","archived":false,"fork":false,"pushed_at":"2022-08-13T09:40:44.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T23:05:04.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/fuadop.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":"2022-08-08T18:31:13.000Z","updated_at":"2024-02-14T01:25:32.000Z","dependencies_parsed_at":"2022-08-14T04:30:59.293Z","dependency_job_id":null,"html_url":"https://github.com/fuadop/serverless-plugin-telegram-webhook","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/fuadop%2Fserverless-plugin-telegram-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuadop%2Fserverless-plugin-telegram-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuadop%2Fserverless-plugin-telegram-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuadop%2Fserverless-plugin-telegram-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuadop","download_url":"https://codeload.github.com/fuadop/serverless-plugin-telegram-webhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"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-11T07:05:48.421Z","updated_at":"2025-10-26T19:31:55.004Z","avatar_url":"https://github.com/fuadop.png","language":"TypeScript","readme":"# serverless-plugin-telegram-webhook\n\nServerless plugin for automatically setting telegram webhook to lambda api gateway url on deploy.\n\n## Install\n\n```bash\nyarn add -D serverless-plugin-telegram-webhook\n# or\nnpm install --save-dev serverless-plugin-telegram-webhook\n```\n\nAdd the following plugin to your `serverless.yml`:\n\n```yaml\nplugins:\n  - serverless-plugin-telegram-webhook\n```\n\n## Configure\n\nSet the config in the `self:custom` of your `serverless.yml` file.\n\n### Using reference to lambda\n\n```yaml\ncustom:\n  telegramWebhook:\n    token: \"my-telegram-bot-token\"\n    webhook:\n      type: function\n      value: webhookHandler # your lambda function identifier\n```\n\n### Using reference to api gateway path\n\n```yaml\ncustom:\n  telegramWebhook:\n    token: \"my-telegram-bot-token\"\n    webhook:\n      type: path\n      value: /webhook # your http api path\n```\n\nYour `serverless.yml` should be similar to this:\n\n#### Using reference to lambda function\n\n```yaml\nservice: serverless-example\n\nplugins:\n  - serverless-plugin-telegram-webhook\n\ncustom:\n  telegramWebhook:\n    token: my-telegram-bot-token\n    webhook:\n      type: function\n      value: hello # reference to the hello lambda function\n\nprovider:\n  name: aws # this plugin currently only works with aws\n\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - http:\n          path: hello\n          method: get\n```\n\n#### Using api gateway path\n\n```yaml\nservice: serverless-example\n\nplugins:\n  - serverless-plugin-telegram-webhook\n\ncustom:\n  telegramWebhook:\n    token: my-telegram-bot-token\n    webhook:\n      type: path\n      value: /hello\n\nprovider:\n  name: aws # this plugin currently only works with aws\n\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - http:\n          path: hello\n          method: get\n```\n\n## Contributing\n\nPRs are greatly appreciated, help us build this hugely needed tool so anyone else can easily build telegram bots using serverless framework.\n\n1. Create a fork\n2. Create your feature branch: `git checkout -b my-feature`\n3. Commit your changes: `git commit -am 'add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request 🚀\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuadop%2Fserverless-plugin-telegram-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuadop%2Fserverless-plugin-telegram-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuadop%2Fserverless-plugin-telegram-webhook/lists"}