An open API service indexing awesome lists of open source software.

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.

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]





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

(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](https://twitter.com/deliverymgt) - m.pomar@outlook.com

Project Link: [https://github.com/mpomar/StravaToTelegram](https://github.com/mpomar/StravaToTelegram)

(back to top)

## Acknowledgments

* [Strava](https://strava.com/)
* [Telegram](https://telegram.org/)
* [Shields.io](https://shields.io)
* [Best-README-Template](https://github.com/othneildrew/Best-README-Template)

(back to top)

[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