{"id":15652025,"url":"https://github.com/qubvel/keras_telegram_callback","last_synced_at":"2025-04-30T20:07:10.492Z","repository":{"id":107991272,"uuid":"130754521","full_name":"qubvel/keras_telegram_callback","owner":"qubvel","description":"Telegram-bot callback for your Keras model","archived":false,"fork":false,"pushed_at":"2019-04-27T18:23:45.000Z","size":7,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T20:07:02.862Z","etag":null,"topics":["callback","keras","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qubvel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-23T20:44:12.000Z","updated_at":"2024-12-20T16:51:59.000Z","dependencies_parsed_at":"2023-05-15T16:45:25.113Z","dependency_job_id":null,"html_url":"https://github.com/qubvel/keras_telegram_callback","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/qubvel%2Fkeras_telegram_callback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fkeras_telegram_callback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fkeras_telegram_callback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fkeras_telegram_callback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qubvel","download_url":"https://codeload.github.com/qubvel/keras_telegram_callback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774895,"owners_count":21641731,"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":["callback","keras","telegram"],"created_at":"2024-10-03T12:40:59.469Z","updated_at":"2025-04-30T20:07:10.474Z","avatar_url":"https://github.com/qubvel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Keras callback in Telegram\nTelegram-bot callback for your Keras model  \n\nThis module allows your model to send learning history to your chat in Telegram messenger.  \n\n### Configure your Telegram Callback\nTo start use this callback you need fo register bot in telegram and get your `telegram_id`. Follow instructions below.\n\n#### Step 1. Register your telegram bot.  \n - Find `BotFather` in Telegram.\n - Follow `BotFather` instructions to register your bot in a few steps and get `token`.\n\n#### Step 2. Get your ID.\n - Find `@my_id_bot` bot in Telegram and get your `telegram_id`. If bot is not working get `telegram_id` manually (step 2a).  \n\n#### Step 2a. Get your ID (optional).\n - Find your bot in telegram and send message 'hello!'\n - Paste in your browser `api.telegram.org/bot\u003ctoken\u003e/getUpdates` (use token you get in previous step), if you did everything correctly you will recive a JSON where you can find your `telegram_id`.\n\n### Example\n\n```python\nfrom .callbacks import TelegramCallback\n\n# load data, define and compile model\n...\n\n# create callback\nconfig = {\n    'token': '556983321:AAHO-bSWaIqcvHL91Xw12X18OWczFIpY1s0',   # paste your bot token\n    'telegram_id': 123456789,                                   # paste your telegram_id\n}\n\ntg_callback = TelegramCallback(config)\n\n# start training\nmodel.fit(x, y, batch_size=32, callbacks=[tg_callback])\n```\n\nCongratulations! Now you will recive logs (losses, metrics, lr, etc.) in Telegram!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubvel%2Fkeras_telegram_callback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubvel%2Fkeras_telegram_callback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubvel%2Fkeras_telegram_callback/lists"}