Skip to content

Telegram bot to automatically make reservations at Fit For Free

Notifications You must be signed in to change notification settings

ChrisLahaye/fitbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fitbot

This package provides a Telegram bot to automatically make reservations at Fit For Free.

Build

git clone https://github.com/ChrisLahaye/fitbot.git
go build -o fitbot cmd/main.go

Usage

./fitbot

Configuration

The following variables are all required and must be specified as environment variables or in the .env configuration file.

BOT_OWNER

The Telegram user ID communicating with the bot.

You can view your Telegram user ID using the GetIDs bot.

BOT_TOKEN

The Telegram API token of the bot.

You can view and manage your Telegram bots using the BotFather bot.

FIT_MEMBER_ID

The Fit For Free membership number.

FIT_POSTCODE

The postcode of the Fit Fot Free membership.

FIT_VENUE

The Fit For Free venue to make reservations at.

You can list all venues by querying the /v1/venues/ endpoint of the Fit For Free API. Check the source code for how to make authorized API requests.


The Fit For Free API requires an app version to be specified as request header. Outdated app versions are blocked and result in an error message requesting to update the app. This request header is hard-coded here with the latest Android app version at the time of development. To successfully use the API this value must be a recent app version. Check the Google Play store for the latest app version.

For Educational Purposes Only

About

Telegram bot to automatically make reservations at Fit For Free

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages