https://github.com/mpomar/stravatotelegram
Integrating Strava data into Telegram.
https://github.com/mpomar/stravatotelegram
sport sports strava strava-api strava-data strava-oauth telegram telegram-api telegram-bot telegram-bot-api
Last synced: over 1 year ago
JSON representation
Integrating Strava data into Telegram.
- Host: GitHub
- URL: https://github.com/mpomar/stravatotelegram
- Owner: mpomar
- Created: 2023-12-16T22:07:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T08:16:06.000Z (over 2 years ago)
- Last Synced: 2025-01-26T10:45:43.993Z (over 1 year ago)
- Topics: sport, sports, strava, strava-api, strava-data, strava-oauth, telegram, telegram-api, telegram-bot, telegram-bot-api
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Language][language-shield]][language-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
[![Twitter][twitter-shield]][twitter-url]
Table of Contents
## About The Project
This script enables you to retrieve Strava data within a Telegram bot. Currently,it fetches activity data through the API but can easily be expanded to include other data tables within the Strava application.
## Prerequisites
* Install Python and add to PATH
* Create and activate virtual environment
* Clone or download the repository
* Install all dependencies
* Create a Strava app from [this link](https://www.strava.com/settings/api) to get your Client ID and Secret
* Make sure to set `localhost` as Authorization Callback Domain
* Get your API ID and API hash from [Telegram](https://my.telegram.org)
* Create a Telegram bot with [Botfather](https://t.me/BotFather) to get its bot token
## Usage
* Define the required variables in config.py
* Run main.py to launch the bot
* Visit the Strava link to authorize the app and copy the authorization code included in the callback URL
* Enter the authorization code copied from the callback URL
* Start the conversation with your bot using `/start`
* Use `/activities` to receive the activity data on Telegram
## Contributing
Any contributions are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request:
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! 🌟
## Contact
M. Pomar - [@deliverymgt](https://twitter.com/deliverymgt) - m.pomar@outlook.com
Project Link: [https://github.com/mpomar/StravaToTelegram](https://github.com/mpomar/StravaToTelegram)
## Acknowledgments
* [Strava](https://strava.com/)
* [Telegram](https://telegram.org/)
* [Shields.io](https://shields.io)
* [Best-README-Template](https://github.com/othneildrew/Best-README-Template)
[language-shield]: https://img.shields.io/github/languages/top/mpomar/StravaToTelegram?style=for-the-badge
[language-url]: https://github.com/mpomar/StravaToTelegram
[forks-shield]: https://img.shields.io/github/forks/mpomar/StravaToTelegram?style=for-the-badge
[forks-url]: https://github.com/mpomar/StravaToTelegram/network/members
[stars-shield]: https://img.shields.io/github/stars/mpomar/StravaToTelegram?style=for-the-badge
[stars-url]: https://github.com/mpomar/StravaToTelegram/stargazers
[issues-shield]: https://img.shields.io/github/issues/mpomar/StravaToTelegram?style=for-the-badge
[issues-url]: https://github.com/mpomar/StravaToTelegram/issues
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/manfredipomar
[twitter-shield]: https://img.shields.io/badge/-Twitter-black.svg?style=for-the-badge&logo=twitter&colorB=555
[twitter-url]: https://twitter.com/deliverymgt