{"id":20267017,"url":"https://github.com/ilovebacteria/calculator-telegram-bot","last_synced_at":"2026-02-06T18:32:20.665Z","repository":{"id":53853523,"uuid":"464165790","full_name":"ILoveBacteria/calculator-telegram-bot","owner":"ILoveBacteria","description":"A simple calculator with Telegram bot","archived":false,"fork":false,"pushed_at":"2022-08-07T07:25:49.000Z","size":885,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T20:51:25.510Z","etag":null,"topics":["calculator","java","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://telegram.me/CommonCalculatorBot","language":"Java","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/ILoveBacteria.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":"2022-02-27T14:52:11.000Z","updated_at":"2024-05-31T11:24:16.000Z","dependencies_parsed_at":"2022-08-23T06:00:40.453Z","dependency_job_id":null,"html_url":"https://github.com/ILoveBacteria/calculator-telegram-bot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ILoveBacteria/calculator-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILoveBacteria%2Fcalculator-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILoveBacteria%2Fcalculator-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILoveBacteria%2Fcalculator-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILoveBacteria%2Fcalculator-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ILoveBacteria","download_url":"https://codeload.github.com/ILoveBacteria/calculator-telegram-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILoveBacteria%2Fcalculator-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29172616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T16:33:35.550Z","status":"ssl_error","status_checked_at":"2026-02-06T16:33:30.716Z","response_time":59,"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":["calculator","java","telegram","telegram-bot"],"created_at":"2024-11-14T12:12:47.325Z","updated_at":"2026-02-06T18:32:20.642Z","avatar_url":"https://github.com/ILoveBacteria.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculator Telegram Bot\n\n[![License: MIT](https://img.shields.io/github/license/ILoveBacteria/calculator-telegram-bot)](https://github.com/ILoveBacteria/calculator-telegram-bot/blob/master/LICENSE)\n[![Issues](https://img.shields.io/github/issues/ILoveBacteria/calculator-telegram-bot)](https://github.com/ILoveBacteria/calculator-telegram-bot/issues)\n[![Forks](https://img.shields.io/github/forks/ILoveBacteria/calculator-telegram-bot)](https://github.com/ILoveBacteria/calculator-telegram-bot/network/members)\n[![Stars](https://img.shields.io/github/stars/ILoveBacteria/calculator-telegram-bot)]()\n[![Latest release](https://img.shields.io/github/release/ILoveBacteria/calculator-telegram-bot)](https://github.com/ILoveBacteria/calculator-telegram-bot/releases)\n[![Watchers](https://img.shields.io/github/watchers/ILoveBacteria/calculator-telegram-bot)]()\n[![Last commit](https://img.shields.io/github/last-commit/ILoveBacteria/calculator-telegram-bot)](https://github.com/ILoveBacteria/calculator-telegram-bot/commits/master)\n[![Calculator bot](https://img.shields.io/badge/calculator%20bot-on%20telegram-23AAEA)](https://telegram.me/CommonCalculatorBot)\n![Heroku](https://pyheroku-badge.herokuapp.com/?app=calculator-telegrambot)\n\n## Description\n\nThis is a simple calculator working with Telegram bot. \nIncluding addition, subtraction, multiplication and division\n\nIf the Heroku badge shows green that means you can start the bot from [Telegram](https://telegram.me/CommonCalculatorBot)\n\n![Preview of bot](https://github.com/ILoveBacteria/calculator-telegram-bot/blob/master/assets/preview.png)\n\n## Libraries\nThis project uses the library introduced on the [Telegram website](https://core.telegram.org/bots/samples#java).\nYou can find more information about this library [here](https://github.com/rubenlagus/TelegramBots)\n\n### How to import library?\n\n1. Using Maven Central Repository:\n\n```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.telegram\u003c/groupId\u003e\n        \u003cartifactId\u003etelegrambots\u003c/artifactId\u003e\n        \u003cversion\u003e5.7.1\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\n2. Using Gradle:\n\n```gradle\n    implementation 'org.telegram:telegrambots:5.7.1'\n```\n\n3. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/5.7.1)\n4. Download the jar(including all dependencies) from [here](https://mvnrepository.com/artifact/org.telegram/telegrambots/5.7.1)\n\nImport the library *.jar* direclty to your project. Depending on the IDE you are using, the process to add a library \nis different, here is a video that may help with [Intellij](https://www.youtube.com/watch?v=NZaH4tjwMYg) or\n[Eclipse](https://www.youtube.com/watch?v=VWnfHkBgO1I)\n\n## Compile And Run\n\nif you enjoy this project and want to see how it works, \n\n1. clone the project:\n\n```shell\ngit clone https://github.com/ILoveBacteria/calculator-telegram-bot.git\n```\n\n2. You must enter the token you received from the [BotFather](https://telegram.me/BotFather) \nin the `CalculatorBot` class in the `getBotToken()` method\n\n3. You must enter the username of your bot without '@' in the `CalculatorBot` class in the `getBotUsername()` method\n4. Install [JDK 11](https://www.oracle.com/java/technologies/downloads) or later\n5. Install [Maven 3](https://maven.apache.org/download.cgi)\n6. Build the project:\n\n```shell\nmvn clean install\n```\n\nMaven will read the `pom.xml` and download all dependencies automatically then gives you a jar file named \n`calculator-telegram-bot-{version}-jar-with-dependencies.jar`\n\n7. Run this jar file and enjoy:\n```shell\njava -jar calculator-telegram-bot-{version}-jar-with-dependencies.jar\n```\n\n## License summary\n\nMIT License\n\nCopyright (c) 2022 Moein Arabi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nRead the full license [here](https://github.com/ILoveBacteria/calculator-telegram-bot/blob/master/LICENSE)\n\n## Last Release\n\nYou can download and run the last release from [here](https://github.com/ILoveBacteria/calculator-telegram-bot/releases)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filovebacteria%2Fcalculator-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filovebacteria%2Fcalculator-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filovebacteria%2Fcalculator-telegram-bot/lists"}