{"id":20483971,"url":"https://github.com/hammady/photos-sender-telegram-bot","last_synced_at":"2025-03-05T16:18:11.806Z","repository":{"id":238235420,"uuid":"796157563","full_name":"hammady/photos-sender-telegram-bot","owner":"hammady","description":"A Telegram Bot to send random photos from an S3 bucket ","archived":false,"fork":false,"pushed_at":"2024-05-12T00:45:46.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T04:25:20.177Z","etag":null,"topics":["serverless","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/hammady.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":"2024-05-05T05:28:50.000Z","updated_at":"2024-05-12T00:45:49.000Z","dependencies_parsed_at":"2024-05-12T01:43:05.754Z","dependency_job_id":null,"html_url":"https://github.com/hammady/photos-sender-telegram-bot","commit_stats":null,"previous_names":["hammady/photos-sender-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammady%2Fphotos-sender-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammady%2Fphotos-sender-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammady%2Fphotos-sender-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammady%2Fphotos-sender-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hammady","download_url":"https://codeload.github.com/hammady/photos-sender-telegram-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058218,"owners_count":20065066,"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":["serverless","telegram-bot"],"created_at":"2024-11-15T16:19:22.797Z","updated_at":"2025-03-05T16:18:11.780Z","avatar_url":"https://github.com/hammady.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# photos-sender-telegram-bot\n\nA Telegram Bot to send random photos from an S3 bucket.\n\n## Requirements\n\n- Serverless Framework\n- Python 3.11\n\n## Setup\n\nFill in the `.env` file with the following variables:\n\n```bash\nTELEGRAM_BOT_TOKEN=\nTELEGRAM_CHAT_ID=\nAWS_S3_PREFIX=\nCAPTION_SIGNATURE=\n```\n\n## Deploy\n\n```bash\nsls deploy --aws-profile \u003cprofile_name\u003e --stage foobar\n```\n\nThis will create all necessary resources in AWS and output the name of the\ncreated S3 bucket. You must upload the photos to this bucket under the prefix\nspecified in the `.env` file.\nPhoto names must have the pattern page-001.png, page-002.png, etc.\nA post consists of at least one photo and a caption.\nTo define posts, upload a new file called `pages.csv` to the bucket under the\nsame prefix with the following format:\n\n```csv\ncaption,from,to\nCaption 1,1,3\nCaption 2,4,\n```\n\nThis will create two posts. The first one will have the caption \"Caption 1\" and\nwill include photos from page-001.png to page-003.png. The second one will have\nthe caption \"Caption 2\" and will include one photo with page-004.png.\n\nCaption signatures are optional and can be used to add a signature to the end of\neach caption. The signature is defined in the `.env` file.\n\nTo generate a token for the bot and identify the chat id, check the\nofficial docs for [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Introduction-to-the-API).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhammady%2Fphotos-sender-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhammady%2Fphotos-sender-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhammady%2Fphotos-sender-telegram-bot/lists"}