A Python library to build Telegram bots where the bot logic and data are managed via Google Spreadsheets. Version 2.5.2, actively maintained. Targets Python >= 3.11. Release cadence: irregular.
pip install spreadsheetbotNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example to start a Telegram bot driven by a Google Spreadsheet. Requires TELEGRAM_BOT_TOKEN environment variable and a service account JSON file.
Use a separate spreadsheet for each bot instance, or manage data isolation manually.
Upgrade code to use the new API: replace 'from spreadsheetbot import Bot' with 'from spreadsheetbot import SpreadsheetBot' and adjust method calls accordingly.
Share the spreadsheet with the service account email (found in the JSON credentials file) with 'Editor' role.
Set the environment variable TELEGRAM_BOT_TOKEN. Remove any direct token parameter from SpreadsheetBot constructor.