{"id":17657613,"url":"https://github.com/jesewe/telegram-bot","last_synced_at":"2026-02-25T12:04:41.199Z","repository":{"id":258488787,"uuid":"875094686","full_name":"Jesewe/telegram-bot","owner":"Jesewe","description":"A simple Telegram bot that provides helpful commands.","archived":false,"fork":false,"pushed_at":"2025-03-25T05:44:51.000Z","size":201,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T10:26:40.430Z","etag":null,"topics":["bot","js","node-telegram-bot-api","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://github.com/Jesewe/telegram-bot","language":"JavaScript","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/Jesewe.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":"2024-10-19T04:54:54.000Z","updated_at":"2025-03-25T05:44:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d44d8f7f-73f0-4159-8148-b17c90c27ee5","html_url":"https://github.com/Jesewe/telegram-bot","commit_stats":null,"previous_names":["jesewe/telegram-bot"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesewe%2Ftelegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesewe%2Ftelegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesewe%2Ftelegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesewe%2Ftelegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jesewe","download_url":"https://codeload.github.com/Jesewe/telegram-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251327414,"owners_count":21571745,"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":["bot","js","node-telegram-bot-api","telegram","telegram-bot"],"created_at":"2024-10-23T14:42:14.758Z","updated_at":"2026-02-25T12:04:41.169Z","avatar_url":"https://github.com/Jesewe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n   \u003cimg src=\"src/img/icon.png\" alt=\"Telegram Bot\" width=\"200\" height=\"200\"\u003e \r\n   \u003ch1\u003eTelegram Bot\u003c/h1\u003e \r\n   \u003cp\u003eA simple Telegram bot that provides helpful commands.\u003c/p\u003e \r\n   \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e •\r\n   \u003ca href=\"#installation\"\u003e\u003cstrong\u003eInstallation\u003c/strong\u003e\u003c/a\u003e •\r\n   \u003ca href=\"#dependencies\"\u003e\u003cstrong\u003eDependencies\u003c/strong\u003e\u003c/a\u003e •\r\n   \u003ca href=\"#logging\"\u003e\u003cstrong\u003eLogging\u003c/strong\u003e\u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n# Overview\r\n\r\n**Telegram Bot** is a basic, informative Telegram bot that interacts with users via simple commands. It's built using the [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api) library.\r\n\r\n## Features\r\n\r\n- **`/start`** - Sends a welcome message with an inline keyboard for quick access to help and bot info.\r\n- **`/help`** - Lists all available commands for the user.\r\n- **`/info`** - Provides detailed information about the bot.\r\n- **`/joke`** - Fetches a random joke from an external joke API and sends it to the user.\r\n- **`/weather \u003ccity\u003e`** - Retrieves current weather information for the specified city.\r\n- **`/cat`** - Sends a random cute cat image.\r\n- **`/dog`** - Sends a random cute dog image.\r\n- **`/time`** - Shows the current server time.\r\n- **Echo** - Any non-command text is echoed back to the user.\r\n\r\n## Installation\r\n\r\n1. **Clone this repository:**\r\n\r\n   ```bash\r\n   git clone https://github.com/Jesewe/telegram-bot.git\r\n   cd telegram-bot\r\n   ```\r\n\r\n2. **Install the required dependencies:**\r\n\r\n   ```bash\r\n   npm install\r\n   ```\r\n\r\n3. **Create a `config.json` file in the root directory with the following structure:**\r\n\r\n   ```json\r\n   {\r\n     \"token\": \"YOUR_REAL_BOT_TOKEN_HERE\",\r\n     \"botName\": \"Telegram Bot\"\r\n   }\r\n   ```\r\n\r\n4. **Run the bot:**\r\n\r\n   ```bash\r\n   node bot.js\r\n   ```\r\n\r\n## Dependencies\r\n\r\n- **[node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api)**: Telegram Bot API wrapper for Node.js.\r\n- **[axios](https://axios-http.com/)**: HTTP client for making requests to external APIs (joke, weather, cat, and dog image APIs).\r\n\r\n## Logging\r\n\r\nWhen the bot starts, it logs the following to the console:\r\n\r\n```bash\r\nTelegram Bot is running...\r\n```\r\n\r\nAny polling errors or issues (e.g., while fetching a joke or weather data) are logged in the console with error details. For example:\r\n\r\n```bash\r\nError fetching joke: Error message here\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesewe%2Ftelegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesewe%2Ftelegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesewe%2Ftelegram-bot/lists"}