{"id":20079725,"url":"https://github.com/grachale/telegram_bot_ads","last_synced_at":"2026-05-05T17:31:38.887Z","repository":{"id":216874993,"uuid":"742581559","full_name":"grachale/telegram_bot_ads","owner":"grachale","description":"The script defines a Telegram bot that allows users to schedule and manage advertisements. It utilizes the Telebot library for the Telegram Bot API, Schedule for scheduling tasks, and psycopg2 for interacting with the PostgreSQL database.","archived":false,"fork":false,"pushed_at":"2024-01-12T19:56:17.000Z","size":287,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T10:41:38.056Z","etag":null,"topics":["json","postgresql","psycopg2","python","scheduling","telebot","telegram-bot","thread"],"latest_commit_sha":null,"homepage":"","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/grachale.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}},"created_at":"2024-01-12T19:52:39.000Z","updated_at":"2024-01-12T19:58:55.000Z","dependencies_parsed_at":"2024-01-13T11:09:45.771Z","dependency_job_id":"10cd42f1-7a36-411e-8218-0f57b947b63d","html_url":"https://github.com/grachale/telegram_bot_ads","commit_stats":null,"previous_names":["grachale/telegram_bot_ads"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grachale/telegram_bot_ads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grachale%2Ftelegram_bot_ads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grachale%2Ftelegram_bot_ads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grachale%2Ftelegram_bot_ads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grachale%2Ftelegram_bot_ads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grachale","download_url":"https://codeload.github.com/grachale/telegram_bot_ads/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grachale%2Ftelegram_bot_ads/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["json","postgresql","psycopg2","python","scheduling","telebot","telegram-bot","thread"],"created_at":"2024-11-13T15:24:20.911Z","updated_at":"2026-05-05T17:31:38.871Z","avatar_url":"https://github.com/grachale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot Server for Scheduled Adds\n\nThe script `app/src/main.py` defines a Telegram bot that allows users to schedule and manage advertisements. It utilizes the Telebot library for the Telegram Bot API, Schedule for scheduling tasks, and psycopg2 for interacting with the PostgreSQL database.\n\n## Features\n\n- User authentication\n- Creating and scheduling new advertisements\n- Displaying user and advertisement information\n- Deleting users or advertisements\n- Storing adds and users in PostgreSQL database.\n\n## Dependencies\n\n- Telebot\n- Schedule\n- Psycopg2\n- Tabulate\n\n## How to Run Server\n\nTo run the script go to the `app/src` directory, provide it with a configuration file path as a command-line argument:\n\n```bash\npython main.py \u003cconfig_file\u003e\n```\n\nThe configuration file should be in JSON format and include the token for the Telegram Bot API, as well as the configuration for the PostgreSQL database.\nExample of usage (must be executed in the `app/src` directory):\n\n```bash\npython main.py ../configs/config.json\n```\n\n## How to Run Tests\n```bash\npytest\n```\nBefore running the server and tests, ensure you have the required dependencies installed, started PostgreSQL database with correct configuration as you have provided as a command-line argument - \u003cconfig_file\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrachale%2Ftelegram_bot_ads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrachale%2Ftelegram_bot_ads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrachale%2Ftelegram_bot_ads/lists"}