# Failed to send Telegram message (401 Unauthorized)

**URL:** https://meta.discourse.org/t/failed-to-send-telegram-message-401-unauthorized/239624
**Category:** Support
**Tags:** chat-integration
**Created:** [September 21, 2022, 7:20am UTC](https://meta.discourse.org/t/failed-to-send-telegram-message-401-unauthorized/239624 "2022-09-21T07:20:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nikita4ka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikita4ka/32/272450_2.png) [@Nikita4ka](https://meta.discourse.org/u/Nikita4ka)
#### Post date: [September 21, 2022, 7:20am UTC](https://meta.discourse.org/t/failed-to-send-telegram-message-401-unauthorized/239624/1 "2022-09-21T07:20:01Z")

</div>

Pls help plugin

Message

```plaintext
Failed to send Telegram message. Message data= "{\"url\":\"https://sund.pro/telegram/hook/05e3a6a3d685d7b47788bf160baf0814\"}" response="{\"ok\":false,\"error_code\":401,\"description\":\"Unauthorized\"}"

```

Backtrace

```plaintext
/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:237:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:226:in `block in perform'
/var/www/discourse/app/jobs/base.rb:222:in `each'
/var/www/discourse/app/jobs/base.rb:222:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.5.6/lib/sidekiq/processor.rb:202:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.5.6/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'

```

Plugins discourse-chat-integration

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [September 21, 2022, 8:20pm UTC](https://meta.discourse.org/t/failed-to-send-telegram-message-401-unauthorized/239624/2 "2022-09-21T20:20:04Z")

</div>

At a quick glance, it looks like an authorization issue. Perhaps the token is misconfigured or has been removed or expired? (Related: [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))

Can you share a bit more detail about what the problem is from the user perspective?

What isn’t working properly? What actions are being taken? What did you expect to happen that is not happening?

Were things working before and stopped working? Or are you just trying to set things up now and having a problem?

---

<div class="post-metadata">

### Author: ![Nikita4ka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikita4ka/32/272450_2.png) [@Nikita4ka](https://meta.discourse.org/u/Nikita4ka)
#### Post date: [September 21, 2022, 8:51pm UTC](https://meta.discourse.org/t/failed-to-send-telegram-message-401-unauthorized/239624/3 "2022-09-21T20:51:33Z")

</div>

it used to work, and now it stopped working, the bot does not respond at all

i even changed the bot token and changed it in the plugin still doesn’t work

I’m sorry for the mistakes, I don’t know English, I use a translator
