This is a simple telegram bot which allows counting user statistics within specific group based on message replies. As an additional feature, allows to track and share body weight within the group. Not supposed to run in large groups
This bot is designed for GCP Cloud Functions as execution environment and with GCP Firestore as storage for user statistics.
- Runtime:
Python 3.10
- Allow unauthenticated access
- Memory:
128M
CREATOR_ID
: id of the person who will have superuser permissions and will receive error notification in case something happened on backendBOT_TOKEN
: Telegram bot token which will be used for sending messages
- Bot should Allow Groups
- Privacy mode must be disabled
- Update fields to listen:
["message", "my_chat_member"]
curl -X "POST" "https://api.telegram.org/bot<BOT_TOKEN>/setWebhook" \
-d '{"drop_pending_updates": true, "url": "<Function URL>", "allowed_updates": ["message", "my_chat_member"]}' \
-H 'Content-Type: application/json; charset=utf-8'