{"id":23692725,"url":"https://github.com/jmservera/azureblob2telegram","last_synced_at":"2025-08-12T05:14:49.812Z","repository":{"id":82291687,"uuid":"256168013","full_name":"jmservera/AzureBlob2Telegram","owner":"jmservera","description":"An Azure Function for containers that takes an .mp4 video from a blob, reduces it size and sends it to Telegram.","archived":false,"fork":false,"pushed_at":"2023-05-03T10:55:06.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T09:40:38.613Z","etag":null,"topics":[],"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/jmservera.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,"zenodo":null}},"created_at":"2020-04-16T09:24:44.000Z","updated_at":"2023-05-03T11:06:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"77b90154-f99e-471d-8ce0-e2677fadcddf","html_url":"https://github.com/jmservera/AzureBlob2Telegram","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jmservera/AzureBlob2Telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmservera%2FAzureBlob2Telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmservera%2FAzureBlob2Telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmservera%2FAzureBlob2Telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmservera%2FAzureBlob2Telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmservera","download_url":"https://codeload.github.com/jmservera/AzureBlob2Telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmservera%2FAzureBlob2Telegram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268479751,"owners_count":24256881,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-12-30T03:35:20.205Z","updated_at":"2025-08-12T05:14:49.801Z","avatar_url":"https://github.com/jmservera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Blob to Telegram\n\n![Python application](https://github.com/jmservera/AzureBlob2Telegram/workflows/Python%20application/badge.svg)\n\nA Python Azure Function that uses the [FFmpeg library](https://ffmpeg.org/) to reduce the size of a video uploaded to Blob Storage and sends it to a [Telegram](https://telegram.org/) chat.\n\nAs you need to have the FFmpeg library installed to run it, this function should be [deployed as a container](https://docs.microsoft.com/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal\u0026pivots=programming-language-python).\n\nYou can find a prebuilt container in [Docker Hub](https://hub.docker.com/repository/docker/jmservera/azure-blob-to-telegram).\n\n## What do I need\n\n* An Azure Storage account with a container named **camerain** where you drop your .mp4 files.\n* A [Telegram Bot](https://core.telegram.org/bots#3-how-do-i-create-a-bot) API id.\n* Any system that drops .mp4 files into the Azure Storage Account\n\n## Steps to build, deploy and configure\n\n1. Build the container image and upload it to your preferred image registry. You can follow the [build container image](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal\u0026pivots=programming-language-python#build-the-container-image-and-test-locally) tutorial. In my case I used [Azure Container Registry](https://azure.microsoft.com/services/container-registry/)\n2. Create an [Azure Function and all its resources](https://docs.microsoft.com/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal\u0026pivots=programming-language-python#create-supporting-azure-resources-for-your-function).\n3. Create an Azure Storage Account with a container named **camerain**, or you can change it in the [function.json](./video2telegramfunction/FromBlob/function.json) *path* property, before building the container.\n4. Configure the mandatory fields\n   * AzureWebJobsStorage\n   * CameraDropFilesStorage\n   * TELEGRAM_CHAT_ID\n   * TELEGRAM_API_KEY\n5. Enjoy (you may send some files to your Storage account camerain's folder)\n\n## Parameters\n\nThere's some additional parameters that you may use to influence the way video is scaled, here are all the configuration parameters for this container:\n\n* **AzureWebJobsStorage**: mandatory, used for task sincronization by the Azure Functions Platform\n* **CameraDropFilesStorage**: mandatory, needs to have a *camerain* container where you drop the .mp4 files\n* **TELEGRAM_API_KEY**: mandatory, the Bot API Key from Telegram\n* **TELEGRAM_CHAT_ID**: mandatory, the ID of the chat where you want to send the video\n* **TELEGRAM_DISABLE_NOTIFICATION**: default=True, set it to false if you want add notification to the messages\n* **FFMPEG_FPS**: default=10\n* **FFMPEG_WIDTH**: default=320, height is calculated from the width\n* **FFMEG_NOAUDIO**: default=True, set it to false if you want to send audio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmservera%2Fazureblob2telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmservera%2Fazureblob2telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmservera%2Fazureblob2telegram/lists"}