@TimeZoneSyncBot
is a Telegram bot for syncing time between time zones in a Telegram chat.
Time zones use TZ identifiers from the tz database.
Add the bot to a chat and grant "Send Messages" permission.
- Deploy to Fly.io.
- Add
APP_NAME
secret. - Add
BOT_TOKEN
secret. - Add optional
BOT_MAX_CONCURRENCY
secret (default value is1000
). - Add optional
PORT
secret (default value is4000
). - Add
DATABASE_URL
secret (default value islocalhost/time_zone_sync_bot
for development and tests).
- Add time zone.
- Update time zone.
- Remove time zone.
- Remove all time zones.
- Show date in time zones.
- Show time in time zones.
- Show datetime in time zones.
- Show datetime in time zones for specified time of another time zone.
- Show time zones.
- Show help message.
/add_time_zone <label> <time_zone>
: Add time zone with a label./update_time_zone <label> <new_time_zone>
: Update time zone with the label./remove_time_zone <label>
: Remove time zone with the label./clear_time_zones
: Remove all time zones./date
: Show date in time zones./time
: Show time in time zones./datetime
: Show datetime in time zones./sync_datetime <label> <time>
: Show datetime in time zones for specified time of another time zone./time_zones
: Show time zones./help
: Show help message.
/date
<b>Tbilisi</b>: 2023-04-09
<b>Haifa</b>: 2023-04-09
<b>Warsaw</b>: 2023-04-09
<b>London</b>: 2023-04-09
<b>San_Francisco</b>: 2023-04-09
/time
<b>Tbilisi</b>: 11:20 (+0400)
<b>Haifa</b>: 10:20 (+0300)
<b>Warsaw</b>: 09:20 (+0200)
<b>London</b>: 08:20 (+0100)
<b>San_Francisco</b>: 00:20 (-0700)
/datetime
<b>Tbilisi</b>: 2023-04-09 11:20 (+0400)
<b>Haifa</b>: 2023-04-09 10:20 (+0300)
<b>Warsaw</b>: 2023-04-09 09:20 (+0200)
<b>London</b>: 2023-04-09 08:20 (+0100)
<b>San_Francisco</b>: 2023-04-09 00:20 (-0700)
/timezones
<b>Tbilisi</b>: Asia/Tbilisi
<b>Haifa</b>: Asia/Jerusalem
<b>Warsaw</b>: Europe/Warsaw
<b>London</b>: Europe/London
<b>San_Francisco</b>: America/Los_Angeles