Automatically send Telegram notifications when Google Sheets data changes.
- 🔔 Automated Telegram notifications for sheet updates
- ⚙️ Configurable message format and trigger conditions
- 📝 Support for all sheet columns
- ✨ Markdown formatting for messages
- 🔍 Detailed logging for troubleshooting
- 🛡️ Error handling and chat migration support
- Google Account
- Telegram Bot Token (get from @BotFather)
- Google Sheets access
Create two sheets in your Google Spreadsheet:
Setting | Value |
---|---|
Bot Token | Your bot token |
Form Sheet Name | Name of your data sheet |
Custom Title | Message title |
Excluded Columns | comma,separated,columns |
Trigger Status | COMPLETED |
Must include these columns:
- Status
- Telegram ID
- Open Script Editor (Extensions > Apps Script)
- Copy the code from
src/Code.gs
- Save and create a trigger:
- Function:
sendTelegramNotification
- Event: From spreadsheet
- Event type: On edit
- Function:
- Users must start your Telegram bot
- Update the 'Status' column to trigger notifications
- Bot sends formatted message to specified Telegram ID
- Bot Token: Your Telegram bot API token
- Form Sheet Name: Name of sheet containing form responses
- Custom Title: Title for notification messages
- Excluded Columns: Columns to exclude from notifications
- Trigger Status: Status value that triggers notification
Notifications include:
- Custom title
- Timestamp
- All non-excluded column values
Check the Apps Script logs for detailed error messages and execution tracking.
Common issues:
- Invalid bot token
- Missing required columns
- Incorrect sheet names
- Users haven't started the bot
Contributions welcome! Please feel free to submit issues or pull requests.
MIT License - See LICENSE file