# Telegram Notifications Plugin (discourse-telegram-notifications)

**URL:** https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483
**Category:** Plugin
**Created:** [4월 5, 2017, 2:09오후 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483 "2017-04-05T14:09:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [4월 5, 2017, 2:09오후 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/1 "2017-04-05T14:09:57Z")

</div>

# [Discourse Telegram Notifications Plugin](https://github.com/davidtaylorhq/discourse-telegram-notifications)

> [@](#):
>
> ⚠ Do not confuse this with the [discourse-chat-integration plugin](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522), they do different things.
> 
> If you want to send notifications about posts to telegram group chats or broadcast channels, use discourse-chat-integration.
> 
> If you want users to receive their notifications via telegram, use this plugin.
> 
> The two plugins can co-exist, but you MUST connect them to two different telegram bots.

> [@](#):
>
> :philosoraptor: This is not an official plugin (despite @david being a member of the team)

This plugin allows users to receive their notifications via a Telegram bot, allowing them to turn off email notifications and still keep up-to-date. :success:

You can “like” posts, and respond to them via the bot.

Here’s a quick demo video:

[https://global.discourse-cdn.com/meta/original/3X/f/5/f5cf32bb52caf0cefdba1b55b9876247f441649b.mp4](https://global.discourse-cdn.com/meta/original/3X/f/5/f5cf32bb52caf0cefdba1b55b9876247f441649b.mp4)

# Before Starting

- Your forum must be using HTTPS, and have `force_https` turned on
- Your forum must be accessible to the internet, not only an internal network (in development, give [ngrok](https://ngrok.com/) a try).

# Getting the plugin setup

1. Install the plugin using the instructions here: [How to install a plugin](https://meta.discourse.org/t/install-a-plugin/19157)
2. Create a telegram bot by talking to the [BotFather](https://telegram.me/botfather) (instructions [here](https://core.telegram.org/bots#6-botfather))
3. Paste the “token” into the site setting “telegram access token”
4. Tick “telegram notifications enabled”

I strongly recommend you use the BotFather’s `/setjoingroups` command to disable the bot being used for group chats. It is not designed for it, and risks leaking information that users are not supposed to be able to access (e.g. you don’t want private messages being sent to a group chat).

You can set the name/picture/description of your bot using the instructions [here](https://core.telegram.org/bots#botfather-commands)

# For users to receive notifications

1. Send a message to the bot, you’ll receive a message back that looks like

> To get notifications for Discourse, enter the ‘Chat ID’ 1234567 in your user preferences

1. Visit your Discourse user preferences, and paste the number in the `Telegram Notifications` box
2. You should now receive notifications by telegram message!

# Find out who’s using telegram for notifications

Here’s a query for the [data explorer plugin](https://meta.discourse.org/t/data-explorer-plugin/32566):

```sql
SELECT user_id, updated_at, value from user_custom_fields
WHERE name = 'telegram_chat_id'

```

* * *
This is still a work in progress. I think the next task would be to improve the setup flow for the user, so they don't have to copy/paste numbers between telegram and the forum.

Related discussions are: [here](https://meta.discourse.org/t/connecting-telegram-bot-to-discourse/55962), [here](https://meta.discourse.org/t/telegram-bots-anyone/60216), [here](https://meta.discourse.org/t/discourse-and-chatbot-integrations/60372) and [here](https://meta.discourse.org/t/common-event-system-for-chatrooms-a-specification/59245)

As always, suggestions and comments are very welcome 🙂

---

<div class="post-metadata">

### Author: ![danb35](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@danb35](https://meta.discourse.org/u/danb35)
#### Post date: [12월 27, 2019, 11:03오전 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/136 "2019-12-27T11:03:04Z")

</div>

> [@shaleedt](#):
>
> 그런 다음 텔레그램에서 그룹을 만들고 봇을 멤버로 추가했습니다.

문서 어디에도 그룹을 만들라고 한 내용은 보이지 않고, 오히려 봇이 그룹에 추가되는 것을 허용하지 말라는 권장 사항이 보입니다. 봇이 포함된 그룹이 아니라 봇에게 직접 메시지를 보내세요.

> [@shaleedt](#):
>
> 또한, discourse-chat-integration과 discourse-telegram-notifications 둘 다 설치해야 하나요?

OP(원문)에 따르면(상단의 그늘진 상자에도 명시되어 있음), 이 두 플러그인은 서로 다른 역할을 합니다:

> [@david](#):
>
> [discourse-chat-integration 플러그인](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522)과 혼동하지 마세요. 이 두 플러그인은 서로 다른 일을 합니다.
> 
> 게시물에 대한 알림을 텔레그램 그룹 채팅이나 브로드캐스트 채널로 보내려면 discourse-chat-integration을 사용하세요.
> 
> 사용자가 텔레그램을 통해 알림을 받으려면 이 플러그인을 사용하세요.

---

<div class="post-metadata">

### Author: ![danb35](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@danb35](https://meta.discourse.org/u/danb35)
#### Post date: [12월 28, 2019, 10:41오전 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/139 "2019-12-28T10:41:52Z")

</div>

> [@Pravi](#):
>
> 채팅룸 통합 플러그인과 텔레그램 알림 플러그인을 동시에 사용할 수 있나요?

OP(첫 글 작성자)의 답변:

> [@david](#):
>
> 두 플러그인은 함께 사용할 수 있지만, 반드시 서로 다른 두 개의 텔레그램 봇에 연결해야 합니다.

직접 해본 적은 없지만, 그 답변이 질문에 대한 답이 되는 것 같습니다.

---

<div class="post-metadata">

### Author: ![volanar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/volanar/32/318163_2.png) [@volanar](https://meta.discourse.org/u/volanar)
#### Post date: [6월 26, 2022, 8:30오후 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/181 "2022-06-26T20:30:09Z")

</div>

> [@david](#):
>
> 이것은 아직 진행 중인 작업입니다. 다음 과제는 사용자가 텔레그램과 포럼 사이에 숫자를 복사/붙여넣지 않아도 되도록 설정 플로우를 개선하는 것이라고 생각합니다.

안녕하세요. 이 기능이 현재 작동 중인가요?

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [1월 11, 2023, 9:41오전 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/185 "2023-01-11T09:41:04Z")

</div>

> [@david](#):
>
> [data explorer 플러그인](https://meta.discourse.org/t/data-explorer-plugin/32566)을 위한 쿼리입니다:
> 
> ```plaintext
> SELECT user_id, updated_at, value from user_custom_fields
> WHERE name = 'telegram_chat_id'
> 
> ```

이 문장을 새로운 데이터 탐색기 쿼리에 복사하면 `Internal Server Error`가 발생합니다.

데이터베이스에서 해당 문장을 직접 실행하면 정상적으로 동작합니다.

이상하네요. 사용 가능한 표준 쿼리 중 몇 가지를 시도해 봤는데, 일부는 정상적으로 작동했지만 다른 쿼리에서는 동일한 오류가 발생했습니다.

---

<div class="post-metadata">

### Author: ![Flashio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flashio/32/148951_2.png) [@Flashio](https://meta.discourse.org/u/Flashio)
#### Post date: [2월 17, 2023, 11:47오전 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/192 "2023-02-17T11:47:44Z")

</div>

## Discourse: 3.0.0 안정판 및 3.0.1 안정판

두 버전 모두 텔레그램 알림과 텔레그램을 통한 주제 답글 기능이 깨졌습니다. API 키를 재생성해도 문제가 해결되지 않습니다. 답글 작성이 작동하지 않으며, 이전처럼 봇이 답글이 전송되었음을 확인해 주지도 않습니다.

이 문제에 대한 해결책이 있을까요? 아니면 이 플러그인의 지원이 종료된 건가요? ☹

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [2월 20, 2023, 3:31오후 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/193 "2023-02-20T15:31:52Z")

</div>

> [@david](#):
>
> Discourse 사용자 설정에 접속하여 `Telegram Notifications` 상자에 해당 번호를 붙여넣으세요.

`Telegram Notifications` 상자를 "프로필"에서 "알림"으로 이동하는 것이 더 합리적이지 않나요? 프로필(제 경우에는 사용자 서명 아래)에서 이 설정을 찾을 것이라고 예상하지 못해 찾아야 했습니다. 😉

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [12월 9, 2023, 7:40오전 UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/200 "2023-12-09T07:40:24Z")

</div>

아니요. 이 플러그인의 목적은 다음과 같습니다:

> [@david](#):
>
> 이 플러그인은 사용자들이 텔레그램 봇을 통해 알림을 받을 수 있도록 하여, 이메일 알림을 꺼두면서도 최신 정보를 놓치지 않게 해줍니다. :success:

다음 링크를 확인해 보시는 것이 좋습니다:

> [@Discourse Chat Bridge (Telegram)](https://meta.discourse.org/t/discourse-chat-bridge-currently-only-supports-telegram/284691):
>
> information_source요약 Discourse 채팅을 Telegram으로 브리지합니다hammer_and_wrench리포지토리 링크 [https://github.com/Lhcfl/discourse-chat-bridge](https://github.com/Lhcfl/discourse-chat-bridge)open_book설치 가이드 [Discourse에서 플러그인 설치 방법](https://meta.discourse.org/t/install-plugins-in-discourse/19157) 저는 Discourse를 다른 플랫폼과 연결하는 작업을 하고 있습니다. 현재는 Telegram만 지원하지만, Matrix를 지원할 계획이며, 제 에너지와 받는 지원에 따라 향후 Discord나 QQ도 지원할 수 있습니다. 이 플러그인은 최신 Discourse test-passed 브랜치만 지원합니다. 왜냐하면 Discourse Chat이 코드를 자주 변경하기 때문에, 저 역시 그와 동기화해야 하기 때문입니다. 따라서 해당 플러그인이 여러분의 사이트에서 사용 가능하고 여러분에게 중요한 경우, Discourse 업데이트 빈도를 줄여주세요. 패치…

> [@Set up Telegram integration using the discourse-chat-integration plugin](https://meta.discourse.org/t/set-up-telegram-integration-using-the-discourse-chat-integration-plugin/66603?u=merefield):
>
> This #howto describes how to setup the Telegram provider included in discourse-chat-integration. Enable the plugin The discourse-chat-integration plugin is bundled with Discourse. If you haven’t already, follow the [main plugin instructions](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522) to enable it. Setup Telegram Talk to the [Telegram “Botfather”](https://telegram.me/botfather) robot and setup a new bot. [detailed instructions here](https://core.telegram.org/bots#how-do-i-create-a-bot) Make sure to copy the token that the BotFather gives you. It will look something like this:110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw …
