# Telegram Notifications Plugin (discourse-telegram-notifications)

**URL:** https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483
**Category:** Plugin
**Created:** [April 5, 2017, 2:09pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483 "2017-04-05T14:09:57Z")
**Posts on this page:** 20
**Page:** 3

<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: [January 19, 2021, 9:21pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/155 "2021-01-19T21:21:54Z")

</div>

The appearance can be controlled by going to your admin panel, “customise”, “text”, then search for “telegram\_notifications”. You should see things like this which you can edit:

> <https://github.com/davidtaylorhq/discourse-telegram-notifications/blob/main/config/locales/server.en.yml#L22-L32>

Very happy to update the defaults if anyone has some suggestions. Either via a PR, or just share your edited versions in this topic and I can update them in the repo 🙂

---

<div class="post-metadata">

### Author: ![b4oshany](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/b4oshany/32/176298_2.png) [@b4oshany](https://meta.discourse.org/u/b4oshany)
#### Post date: [January 20, 2021, 5:39pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/156 "2021-01-20T17:39:23Z")

</div>

Hi @david,  
Thanks for this.  
I also tried to customize the text on the Admin → Customize → Text page:

```plaintext
/admin/customize/site_texts?q=discourse_telegram_notifications

```

However, it isn’t working from there. It would be great if it was working.

---

<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: [January 20, 2021, 7:44pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/157 "2021-01-20T19:44:14Z")

</div>

> [@b4oshany](#):
>
> However, it isn’t working from there

Do you get an error?

---

<div class="post-metadata">

### Author: ![b4oshany](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/b4oshany/32/176298_2.png) [@b4oshany](https://meta.discourse.org/u/b4oshany)
#### Post date: [January 22, 2021, 6:38pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/158 "2021-01-22T18:38:36Z")

</div>

No, I can’t find any logs. It seems like there’s no error. it’s simply not formatting. I took out the `<pre>`for all the text coming from the site. I did this by visiting `/admin/customize/site_texts?q=discourse_telegram_notifications` and editing the text fields.

It seems like I might have to do the old school way and hardcode it.

---

<div class="post-metadata">

### Author: ![yochaimaytal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yochaimaytal/32/165032_2.png) [@yochaimaytal](https://meta.discourse.org/u/yochaimaytal)
#### Post date: [January 23, 2021, 8:45am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/159 "2021-01-23T08:45:19Z")

</div>

Is there any way you’re aware of to change the font?  
Our forum activities are not in English and the default font that is sent in Telegram looks bad. I dont know if its on the plugin end or the Telegram end.

---

<div class="post-metadata">

### Author: ![b4oshany](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/b4oshany/32/176298_2.png) [@b4oshany](https://meta.discourse.org/u/b4oshany)
#### Post date: [January 27, 2021, 3:52pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/160 "2021-01-27T15:52:22Z")

</div>

Hey @david, I created a pull request: [Change \<pre\> to \<div\> by b4oshany · Pull Request #17 · davidtaylorhq/discourse-telegram-notifications · GitHub](https://github.com/davidtaylorhq/discourse-telegram-notifications/pull/17)

---

<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: [January 27, 2021, 4:12pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/161 "2021-01-27T16:12:35Z")

</div>

Sounds great! Please can you share a screenshot of what the messages will look like in Telegram?

---

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [February 15, 2021, 10:09pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/162 "2021-02-15T22:09:59Z")

</div>

That was strange to me to find the Profile section.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/f/6fcb65029b8fabba63d499c1d8b2407634317628.png)

Why not to move it to the notifications section?

---

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [March 15, 2021, 7:21am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/163 "2021-03-15T07:21:13Z")

</div>

Hello! I receive multiple notifications on Telegram that are copies. One notification can be sent 2-5 times. In a standard user notifications interface, I see only 1 notification. Why may this situation happen?

---

<div class="post-metadata">

### Author: ![yochaimaytal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yochaimaytal/32/165032_2.png) [@yochaimaytal](https://meta.discourse.org/u/yochaimaytal)
#### Post date: [July 22, 2021, 7:18am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/164 "2021-07-22T07:18:44Z")

</div>

Hey @david  
I got the bot up and running and working great for some users.  
However a user now tried to set it up but can’t get a ‘Chat ID’, and I can’t figure out the problem.  
I’m trying to avoid deleting the bot altogether and redoing it, so other users won’t be affected…  
Any help will be appreciated.  
Here’s a screenshot by that user:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/c/bc97d0122b9a6c351abec52db1636729dddfa237.jpeg)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/f/d/fd0a3f268e467fe1dcedf0d1acff0ac8bad55fed.jpeg)

---

<div class="post-metadata">

### Author: ![valsha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valsha/32/230631_2.png) [@valsha](https://meta.discourse.org/u/valsha)
#### Post date: [August 11, 2021, 5:18pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/165 "2021-08-11T17:18:33Z")

</div>

same error as above, can’t get a ‘Chat ID’

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/c/ecca790dbd5387b7a8b58bbdfaede9c9c052b560.png)

---

<div class="post-metadata">

### Author: ![valsha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valsha/32/230631_2.png) [@valsha](https://meta.discourse.org/u/valsha)
#### Post date: [August 14, 2021, 3:07pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/166 "2021-08-14T15:07:10Z")

</div>

more info, my logs:

```plaintext
Message

Failed to send Telegram message. Message data= "{\"url\":\"https://site.net/telegram/hook/2bae74eecc11436c25d7324133c55d72\"}" response="{\"ok\":false,\"error_code\":404,\"description\":\"Not Found\"}"

Backtrace

/var/www/discourse/plugins/discourse-telegram-notifications/services/discourse_telegram_notifications/telegram-notifier.rb:46:in `doRequest'
/var/www/discourse/plugins/discourse-telegram-notifications/services/discourse_telegram_notifications/telegram-notifier.rb:24:in `setupWebhook'
/var/www/discourse/plugins/discourse-telegram-notifications/plugin.rb:251:in `execute'
/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-3.0.0/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:221:in `block in perform'
/var/www/discourse/app/jobs/base.rb:217:in `each'
/var/www/discourse/app/jobs/base.rb:217:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/processor.rb:196:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'"

```

---

<div class="post-metadata">

### Author: ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)
#### Post date: [August 17, 2021, 6:28am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/167 "2021-08-17T06:28:16Z")

</div>

Hello.

We have Discourse with this plug-in. And the user profile has a custom field for Telegram chat id. I need to transfer the value of this field to the user profile page at our site. I’ve prepared a script at our server to process webhook requests from Discourse and configured a webhook for the user events. This webhook starts, but the data transferred to our server in the request have no “Telegram chat id” field and no value. Is this a feature of this plugin? Or can i do something other to get this value?

---

<div class="post-metadata">

### Author: ![hyd504](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyd504/32/177122_2.png) [@hyd504](https://meta.discourse.org/u/hyd504)
#### Post date: [December 29, 2021, 9:54am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/168 "2021-12-29T09:54:22Z")

</div>

Is anyone able to get this to work recently? I tried it on two different hosts but it doesn’t seem to work. I don’t get a response from the bot to get chat ID just like others mentioned in the above chats. Also, I don’t see the chat ID field in profile preferences. I do however see the plugin settings where I enable the plugin and provide the bot token.

---

<div class="post-metadata">

### Author: ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)
#### Post date: [January 31, 2022, 9:53pm UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/172 "2022-01-31T21:53:08Z")

</div>

Hello.

I have installed plug-in at the self-hosted Discourse. Our bot returns no messages when command like /start is given. We don’t now what to write to “Telegram chat ID” field of the user profile. I’ve checked access.log of nginx server in Discourse container, but i had no requests for the bot. What should we do to solve it?

---

<div class="post-metadata">

### Author: ![f1r4s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/f1r4s/32/245347_2.png) [@f1r4s](https://meta.discourse.org/u/f1r4s)
#### Post date: [February 10, 2022, 8:01am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/176 "2022-02-10T08:01:17Z")

</div>

Is there a chance to use other bots do the same functionaliyu by seperate the bots token with “|” ?

so in case we have issue with the old bots; we can add anothr bot to join the new users and don’t effecting the old users ? this would be good idea for continues using of this plugin.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [March 12, 2022, 3:47am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/177 "2022-03-12T03:47:13Z")

</div>

@david Is this telegram notification plugin working yet?

---

<div class="post-metadata">

### Author: ![warms](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@warms](https://meta.discourse.org/u/warms)
#### Post date: [March 28, 2022, 6:30am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/178 "2022-03-28T06:30:41Z")

</div>

Hi @david, is there a fix planned for this plugin? I also do not receive a chat ID from the bot and there seems to be no logs listed.

---

<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: [March 28, 2022, 10:24am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/179 "2022-03-28T10:24:32Z")

</div>

Sorry for the disruption here! Should be fixed by

[https://github.com/davidtaylorhq/discourse-telegram-notifications/commit/868dcc4b383ede6d02b1bee055eb850c4a422a65](https://github.com/davidtaylorhq/discourse-telegram-notifications/commit/868dcc4b383ede6d02b1bee055eb850c4a422a65)

To get things working again, please update the plugin, then turn the plugin off and on again. (disable the `telegram notifications enabled` setting, and then re-enable)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 16, 2022, 10:55am UTC](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/180 "2022-05-16T10:55:04Z")

</div>

4 posts were split to a new topic: [600% CPU usage?](https://meta.discourse.org/t/600-cpu-usage/227194)

[Previous page](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483.md?page=2)

[Next page](https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483.md?page=4)
