Skip to content
/ telegram Public

This webtrees custom module sends Telegram notifications about significant family events such as birthdays and anniversaries based on the data from your webtrees installation.

License

Notifications You must be signed in to change notification settings

Tywed/telegram

Repository files navigation

Webtrees Module: Telegram Notifications

License: GPL v3 webtrees major version Latest Release

This webtrees custom module sends Telegram notifications about significant family events, such as birthdays and anniversaries, based on the data from your webtrees installation.

Contents

This Readme contains the following main sections:

Warning

Before installing this module on your main site, we recommend testing it on a staging environment. This module interacts with external services (Telegram API) and may require specific configuration of your Telegram bot and permissions.

Description

This custom module for webtrees integrates with Telegram to send notifications about significant family events, including but not limited to birthdays, anniversaries, and other key milestones.

Changes to Event Types:

Previously, the module only supported events related to living individuals (e.g., birthdays and marriage anniversaries). Now, it has been updated to support notifications for all events, whether they involve living or deceased individuals. This means you can now receive notifications for important events for all family members.

Supported Events:

  • All Events: Notifications can be configured for any event types defined in your webtrees installation.

Features:

  • Telegram Bot Integration: Sends messages using a Telegram bot.
  • Event Types: Now supports a wider range of events, including those for deceased individuals.
  • Configuration: Set your Telegram Bot Token and chat ID in the module settings.
  • User and Tree Preferences: Specify the user and family tree for which you want to send notifications.

Screenshots

Screenshot of settings module

Screenshot of settings module

Screenshot of the message in Telegram

Screenshot of the message in Telegram

Requirements

This module requires webtrees version 2.2 or later. This module has the same requirements as webtrees system requirements.

This module was tested with webtrees 2.2.1 and later versions.

Telegram Bot:

  • Create a Telegram bot using BotFather.
  • Obtain your bot's token and chat ID.

Cron Job:

To ensure that the notifications are sent regularly (e.g., daily at midnight), you need to set up a cron job on your server. The link for the cron job must be taken from the module settings. This will allow the script to check for events and send the corresponding notifications.

Installation

Follow these steps to install the module:

  1. Download the latest release.
  2. Unzip the package into your webtrees/modules_v4 directory.
  3. Log in to webtrees as an administrator and go to Control Panel / Modules / Telegram.
  4. In the settings, enter your Telegram Bot Token and Telegram Chat ID.
  5. Set the User and Tree from which you want to send the events.
  6. Enable the module and click Save.
  7. Set up a cron job on your server to trigger the module at regular intervals (e.g., daily).

Upgrade

To update the module:

  1. Download and unzip the latest release.
  2. Replace the existing telegram folder in your modules_v4 directory with the new version.
  3. No further configuration should be needed, but double-check the settings in the module to ensure everything is up to date.

Support

License

  • Copyright © 2024 Tywed

This module was developed based on the webtrees-reminder module by Kirill Uksusov (UksusoFF).

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


About

This webtrees custom module sends Telegram notifications about significant family events such as birthdays and anniversaries based on the data from your webtrees installation.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •