Table of Contents
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.
- 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 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
- Create a Telegram bot with Botfather to get its bot token
- 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
Any contributions are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! 🌟
M. Pomar - @deliverymgt - m.pomar@outlook.com
Project Link: https://github.com/mpomar/StravaToTelegram