{"id":20749228,"url":"https://github.com/themysteriousstranger90/telegrambotforspotify","last_synced_at":"2025-09-02T04:05:59.156Z","repository":{"id":235089205,"uuid":"731077526","full_name":"TheMysteriousStranger90/TelegramBotForSpotify","owner":"TheMysteriousStranger90","description":"TelegramBotForSpotify. This project is a Telegram bot that interacts with the Spotify API to provide various functionalities. The bot can authorize a user, fetch the current track, favorite tracks, favorite albums, and playlist information.","archived":false,"fork":false,"pushed_at":"2025-01-22T10:25:05.000Z","size":1369,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T13:52:46.711Z","etag":null,"topics":["csharp","docker","spotify","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"C#","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/TheMysteriousStranger90.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}},"created_at":"2023-12-13T10:03:00.000Z","updated_at":"2025-01-22T10:19:43.000Z","dependencies_parsed_at":"2024-04-22T07:31:40.371Z","dependency_job_id":"8e35a63b-c8c2-4ce0-9eb9-63aa8ad1330e","html_url":"https://github.com/TheMysteriousStranger90/TelegramBotForSpotify","commit_stats":null,"previous_names":["themysteriousstranger90/telegrambotforspotify"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TheMysteriousStranger90/TelegramBotForSpotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForSpotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForSpotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForSpotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForSpotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMysteriousStranger90","download_url":"https://codeload.github.com/TheMysteriousStranger90/TelegramBotForSpotify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForSpotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273227970,"owners_count":25067691,"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-09-02T02:00:09.530Z","response_time":77,"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":["csharp","docker","spotify","telegram","telegram-bot"],"created_at":"2024-11-17T08:21:43.626Z","updated_at":"2025-09-02T04:05:59.116Z","avatar_url":"https://github.com/TheMysteriousStranger90.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TelegramBotForSpotify\n\n![Image 1](Screenshots/Screen1.png)\n\nThis project is a Telegram bot that interacts with the Spotify API to provide various functionalities. The bot can authorize a user, fetch the current track, favorite tracks, favorite albums, and playlist information.\nThe bot supports XML export functionality for albums, tracks, and playlists, allowing users to save their Spotify data in a structured format for backup or analysis purposes.\n\n## Note\nCurrently, my application is in Developer Mode on the Spotify Developer Dashboard. This means that in order for users to use the application, they need to be manually added by me. If you wish to use my application, please contact me so I can add you to the list of authorized users. I appreciate your understanding and cooperation.\n\n## Commands\nThe bot supports the following commands:\n```\n/authorize: Authorizes the user.\n/gettrack: Fetches the current track.\n/gettracks: Fetches the user's favorite tracks.\n/getalbums: Fetches the user's favorite albums.\n/getplaylists: Fetches the user's playlists.\n/help: Provides a list of available commands.\n```\n## Setup\nTo run this project, you need to create an appsettings.json file in the root directory with the following structure:\n```\n{\n  \"Logging\": {\n    \"LogLevel\": {\n      \"Default\": \"Information\",\n      \"Microsoft.AspNetCore\": \"Warning\"\n    }\n  },\n  \"AllowedHosts\": \"*\",\n  \"Spotify\": {\n    \"ClientId\": \"\u003cYour Spotify Client ID\u003e\",\n    \"ClientSecret\": \"\u003cYour Spotify Client Secret\u003e\",\n    \"RedirectUri\": \"http://localhost:8000/callback\"\n  },\n  \"Telegram\": {\n    \"Token\": \"\u003cYour Telegram Bot Token\u003e\"\n  }\n}\n```\nReplace \"\u003cExample\u003e\" \u003cYour Spotify Client Secret\u003e, and \u003cYour Telegram Bot Token\u003e with your actual Spotify Client ID, Spotify Client Secret, and Telegram Bot Token respectively.\n\n## Running the Project\nAfter setting up the appsettings.json file, you can run the project using your preferred .NET Core-compatible IDE or from the command line with the dotnet run command.\n\n## Running the Application with Docker\n\n1. Make sure you have Docker installed on your machine. If not, you can download it from [here](https://www.docker.com/products/docker-desktop).\n\n2. Navigate to the root directory of the project in your terminal.\n\n3. Build the Docker image from the Dockerfile:\n\n    ```bash\n    docker build -t telegrambotforspotify .\n    ```\n\n4. Run the Docker container, mapping the application's port 80 to port 5001 on the host machine:\n\n    ```bash\n    docker run -p 8000:80 -d telegrambotforspotify\n    ```\n\n5. Open a Telegram, find StrangerSpotifyBot and start it.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## Author\n\nBohdan Harabadzhyu\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## YouTube Review\n\u003cdetails\u003e\n\u003csummary\u003e📺 Watch Video Review\u003c/summary\u003e\n\n[![YouTube](http://i.ytimg.com/vi/3Dr5L2KpDdE/hqdefault.jpg)](https://www.youtube.com/watch?v=3Dr5L2KpDdE)\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforspotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforspotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforspotify/lists"}