Skip to content

mpomar/StravaToTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Language Forks Stargazers Issues LinkedIn Twitter


Logo

Strava To Telegram

Integrating Strava data into Telegram!

Table of Contents
  1. About The Project
  2. Prerequisites
  3. Usage
  4. Contributing
  5. Contact
  6. Acknowledgments

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.

(back to top)

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 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

(back to top)

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

(back to top)

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! 🌟

(back to top)

Contact

M. Pomar - @deliverymgt - m.pomar@outlook.com

Project Link: https://github.com/mpomar/StravaToTelegram

(back to top)

Acknowledgments

(back to top)