{"id":21015080,"url":"https://github.com/frefrik/covid19norge-telegram-bot","last_synced_at":"2025-07-31T18:32:49.134Z","repository":{"id":38123636,"uuid":"266802546","full_name":"frefrik/covid19norge-telegram-bot","owner":"frefrik","description":"💬 Telegram bot for tracking live COVID-19 statistics in Norway","archived":false,"fork":false,"pushed_at":"2023-02-10T04:57:45.000Z","size":384,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T12:06:31.431Z","etag":null,"topics":["covid","covid-19","covid19","norge","norway","smittestopp","telegram","telegram-bot","vaccine"],"latest_commit_sha":null,"homepage":"https://t.me/covid19norge","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/frefrik.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":"2020-05-25T14:37:03.000Z","updated_at":"2022-02-21T22:52:31.000Z","dependencies_parsed_at":"2023-02-15T05:01:42.589Z","dependency_job_id":null,"html_url":"https://github.com/frefrik/covid19norge-telegram-bot","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/frefrik%2Fcovid19norge-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Fcovid19norge-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frefrik","download_url":"https://codeload.github.com/frefrik/covid19norge-telegram-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243442044,"owners_count":20291593,"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":["covid","covid-19","covid19","norge","norway","smittestopp","telegram","telegram-bot","vaccine"],"created_at":"2024-11-19T10:08:36.814Z","updated_at":"2025-03-13T16:34:05.494Z","avatar_url":"https://github.com/frefrik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COVID-19 Norge - Telegram Bot\n\u003ca href=\"https://t.me/s/covid19norge\"\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/11590359/83902735-38810c80-a75d-11ea-94f8-dbc6aff85a61.png\"/\u003e\n\n\u003cb\u003eCOVID-19 Norge\u003c/b\u003e \u003cbr\u003e\n*(Preview)*\n\u003c/div\u003e\n\u003c/a\u003e\n\n## Description\nTelegram bot for tracking live COVID-19 statistics in Norway.\n\nThe bot autoposts live COVID-19 updates to a group/channel/user of your choosing:\n```yaml\nbot:\n  token: BOT_TOKEN\n  autopost:\n    chatid: CHAT_ID\n```\n\nBot is live in this channel: [COVID-19 Norge](https://t.me/s/covid19norge)\n\n## Screenshots\n#### Live Updates\n\u003cp align=\"left\"\u003e\n\u003cimg width=415 alt=\"c19_stats\" src=\"https://user-images.githubusercontent.com/11590359/99575530-098fe780-29d9-11eb-9250-975274dbd8ce.png\"\u003e\n\u003cimg width=415 alt=\"c19_live\" src=\"https://user-images.githubusercontent.com/11590359/99575184-92f2ea00-29d8-11eb-902c-597becc9c524.png\"\u003e\n\u003c/p\u003e\n\n#### Graphs\n\u003cp align=\"left\"\u003e\n\u003cimg width=415 alt=\"c19_graphs-1\" src=\"https://user-images.githubusercontent.com/11590359/99575030-66d76900-29d8-11eb-9489-69a7988a10ef.png\"\u003e\n\u003cimg width=415 alt=\"c19_graphs-2\" src=\"https://user-images.githubusercontent.com/11590359/99575102-78b90c00-29d8-11eb-80d8-2de2307a5ad4.png\"\u003e\n\u003c/p\u003e\n\n#### RSS\n\u003cp align=\"left\"\u003e\n \u003cimg width=500 alt=\"c19_rss\" src=\"https://user-images.githubusercontent.com/11590359/99575788-6095bc80-29d9-11eb-8e58-62b368c8e304.png\"\u003e\n\u003c/p\u003e\n\n## Features\n### Autopost:\n\n- **Live updates/events**\n  - Tested\n  - Confirmed cases\n  - Deaths\n  - Admissions\n  - Respiratory\n  - Vaccine doses\n  - Smittestopp\n- **Graphs**\n  - Tested\n  - Confirmed\n  - Dead\n  - Hospitalized\n  - Vaccine doses\n  - Smittestopp\n- **RSS**\n  - News from FHI (Folkehelseinstituttet)\n  - News from the goverment (Regjeringen)\n\n### Available functions:\n- /help - Show commands\n- /stats - COVID-19 statistikk Norge\n- /tested - Graf over testede i Norge\n- /confirmed - Graf over smittede i Norge\n- /dead - Graf over dødsfall i Norge\n- /hospitalized - Graf over sykehusinnleggelser i Norge\n- /vaccine - Graf over antall personer vaksinert i Norge\n- /smittestopp - Graf over data fra Smittestopp\n\n## Installation\n\n### Docker\n##### Create a file named `docker-compose.yml` and add the following:\n```yaml\nversion: '3.4'\n\nservices:\n  bot:\n    container_name: covid19norge-telegram-bot\n    image: frefrik/covid19norge-telegram-bot\n    restart: unless-stopped\n    environment:\n      - TZ=Europe/Oslo\n    volumes:\n      - ./config:/app/bot/config\n      - ./data:/app/bot/data\n```\n\n##### Download and edit bot configuration\n```shell\n$ mkdir -p config \\\n  \u0026\u0026 wget https://raw.githubusercontent.com/frefrik/covid19norge-telegram-bot/master/config/config.dist.yml -O config/config.yml\n```\n\n##### Start bot\n```shell\n$ docker-compose up -d\n```\n\n---\n### git + Docker\n##### Clone the repository\n```shell\n$ git clone https://github.com/frefrik/covid19norge-telegram-bot.git\n$ cd covid19norge-telegram-bot/\n```\n##### Copy `config.dist.yml` to `config.yml` and edit configuration\n```shell\n$ cd config/\n$ cp config.dist.yml config.yml\n```\n\n##### Start bot\n```shell\n$ docker-compose up -d\n```\n\n---\n\n#### Docker Notes\n##### Editing config\nIf `config.yaml` is updated while bot is running, the container must be restarted to use the updated config.\n```shell\n$ docker restart covid19norge-telegram-bot\n```\n##### Bot logs\nUse `docker logs -f covid19norge-telegram-bot` to show informational logs.\n\n---\n### Command line\n##### Install dependencies\n```shell\n$ pip install -r requirements.txt\n```\n\n##### Copy `config.dist.yml` to `config.yml` and edit configuration\n```shell\n$ cp config/config.dist.yml config/onfig.yml\n```\n\n##### Start bot\n```shell\n$ screen -dmS covid19norge python bot.py\n```\n\n##### Attaching to the screen\n```shell\n$ screen -r covid19norge\n```\n\n## Datasource\n- [github.com/frefrik/covid19norge-data](https://github.com/frefrik/covid19norge-data) accessed through [covid19norge.no/api](https://covid19norge.no/api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Fcovid19norge-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrefrik%2Fcovid19norge-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Fcovid19norge-telegram-bot/lists"}