Telegram integration

Connect moschee.io to Telegram to post news and announcements automatically to your channel.

Prerequisites

  • Telegram account
  • Telegram channel or group
  • Admin rights in the channel

Create a Telegram bot

Step 1: Contact BotFather

  1. Open Telegram.
  2. Search for @BotFather.
  3. Start a conversation.

Step 2: Create a new bot

  1. Send /newbot.
  2. Enter a name (e.g., "My Mosque Bot").
  3. Enter a username (must end with bot).
  4. You’ll receive a Bot Token.

Keep the Bot Token safe—don’t share it.

Step 3: Add the bot to your channel

  1. Open your Telegram channel.
  2. Go to channel settings.
  3. Add the bot as an administrator.
  4. Give the bot permission to send messages.

Configure in moschee.io

Enter the Bot Token

  1. Go to Settings > Integrations > Telegram.
  2. Paste the Bot Token.
  3. Click Connect.

Pick the channel

Once the bot is an administrator in your channel, the channel appears automatically in the destination dropdown — under Settings > Integrations > Telegram > Templates and in the livestream notification settings.

If it isn't there yet:

  1. Click Fetch to look again.
  2. Or type @channelname (public channels) or the numeric ID -100… (private channels) into Add channel or group and click Add.

Test it

  1. Select the channel from the dropdown.
  2. Click Test.
  3. A test message is sent to your channel.
  4. If successful: click Save.

Automatic messages

New news posts

  1. Enable Send news automatically
  2. Each new news item triggers a message

New events

  1. Enable Send events automatically
  2. New events are announced in the channel

Daily prayer times

  1. Enable Daily prayer times
  2. Choose the time
  3. Prayer times are posted every day

Message templates

Customize templates

  1. Go to Settings > Telegram > Templates
  2. Edit the templates
  3. Use placeholders

Available placeholders

For news:

  • {title} – News title
  • {excerpt} – Summary
  • {link} – Link to the news

For events:

  • {title} – Event title
  • {date} – Date
  • {time} – Time
  • {location} – Location

For prayer times:

  • {date} – Current date
  • {fajr} – Fajr time
  • {sunrise} – Sunrise
  • {dhuhr} – Dhuhr time
  • {asr} – Asr time
  • {maghrib} – Maghrib time
  • {isha} – Isha time

Example template for news

📰 *{title}*

{excerpt}

🔗 Read more: {link}

Example template for prayer times

🕌 *Prayer times for {date}*

🌅 Fajr: {fajr}
☀️ Sunrise: {sunrise}
🌞 Dhuhr: {dhuhr}
🌤️ Asr: {asr}
🌅 Maghrib: {maghrib}
🌙 Isha: {isha}

May Allah accept your prayers! 🤲

Manual messages

Send a message

In addition to automatic posts, you can send manually:

  1. Go to Settings > Telegram
  2. Click Send message
  3. Write your message
  4. Click Send

Troubleshooting

Best practices

Frequency

  • Avoid too many messages
  • Prioritize important info
  • Daily prayer times are fine

Content

  • Keep it short and clear
  • Emojis improve readability
  • Add links for more info

Next steps