{"id":19665286,"url":"https://github.com/alttch/eva-telegram","last_synced_at":"2026-06-03T23:31:24.992Z","repository":{"id":103748575,"uuid":"235440696","full_name":"alttch/eva-telegram","owner":"alttch","description":"Telegram extension for EVA ICS LM PLC","archived":false,"fork":false,"pushed_at":"2020-01-22T02:49:01.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T03:50:16.749Z","etag":null,"topics":["eva-ics","extension","iiot","industrial-automation","iot","messenger","module","smarthome","telegram"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alttch.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":"2020-01-21T21:01:20.000Z","updated_at":"2020-01-22T02:49:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b75c79ea-577c-4ccc-9143-9adf54de46bf","html_url":"https://github.com/alttch/eva-telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alttch/eva-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Feva-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Feva-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Feva-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Feva-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alttch","download_url":"https://codeload.github.com/alttch/eva-telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Feva-telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285704832,"owners_count":27217837,"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-11-21T02:00:06.175Z","response_time":61,"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":["eva-ics","extension","iiot","industrial-automation","iot","messenger","module","smarthome","telegram"],"created_at":"2024-11-11T16:21:58.238Z","updated_at":"2025-11-21T23:02:50.718Z","avatar_url":"https://github.com/alttch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eva-telegram\n\nTelegram bot extension for [EVA ICS](https://www.eva-ics.com/) LM PLC\n\nRequires EVA ICS 3.3 or newer.\n\n## Install\n\n* install [tebot](https://pypi.org/project/tebot/) module\n\n* put *telegram.py* to */opt/eva/xc/extensions/*\n\n* put sample configuration file *telegram.yml* to */opt/eva/etc/*\n\n* modify sample configuration\n\n* load extension:\n\n```shell\neva lm ext load tbot telegram -y\n```\n\n## Macro execution\n\nStart chat with your bot and follow the instructions.\n\n* if macros is started as \"/macro some args\", args are added to macro arguments.\n\n* current *chat_id* is passed into macro kwargs and may be used later.\n\n## Sending messages from macros\n\nWhen loaded, e.g. as *tbot*, extension provides functions:\n\n* tbot_send\n* tbot_send_photo\n* tbot_send_video\n* tbot_send_audio\n* tbot_send_document\n\nFunction arguments are the same as for https://pypi.org/project/tebot/, refer\nto module documentation for more info, except first argument should be either\nAPI key ID or list of API key IDs. If \"\\*\" is specified, broadcast message is\nsent.\n\n### Examples\n\nSend a message only to user who called macro\n\n```python\n# chat_id variable is available in macro, as it was sent in kwargs\ntbot_send(None, 'this is a reply', chat_id=chat_id)\n```\n\nSend broadcast message to all\n\n```python\ntbot_send('*', 'this is a test')\n```\n\nSend image to users with API key IDs \"operator\" and \"operator2\":\n\n```python\nwith open('image.jpg', 'rb') as fh:\n    tbot_send(['operator', 'operator2'], media=fh.read())\n```\n\n## Command autocomplete\n\nAfter log in, use */getcommands* command, go to [Telegram\nBotFather](https://telegram.me/BotFather), enter */setcommands* and paste it\nas-is.\n\n## Exclude command from the keyboard\n\nTo exclude command from the inline keyboard, put dot before macro in\n\"inline-keyboard\" section of the configuration.\n\n## Security\n\n* using master key is not recommended\n\n* write dedicated macros\n\n* if possible - use dedicated instance of LM PLC\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falttch%2Feva-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falttch%2Feva-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falttch%2Feva-telegram/lists"}