Deyner_López
(Deyner López Fernández)
Janvier 16, 2020, 2:33
43
Hi! Awesome plugin!
I’ve managed to add it successful to a group where we receive notifications about new topics created and new responses.
But can i add the same bot to other group?..will bot post in both group the same info without changing anything else?
I guess Chat Id will be different for same bot in every group…but i need to know from the experts here!
david
(David Taylor)
Janvier 16, 2020, 2:44
44
Correct, this is designed to work in multiple groups
Deyner_López
(Deyner López Fernández)
Janvier 16, 2020, 2:54
45
So i add it to other group (or groups) without changing chat id and it will work no matter what?
david
(David Taylor)
Janvier 16, 2020, 2:56
46
You should create a new “channel” on Discourse for each of the groups
david:
Go to your discourse admin panel, Plugins , Chat Integrations , Telegram
Click Add Channel
Then you can enter a different chat ID for each channel
2 « J'aime »
Deyner_López
(Deyner López Fernández)
Janvier 16, 2020, 2:59
47
Great Thanks! Will test it right now!! Great support here!!
1 « J'aime »
rkda
(RK)
Mai 15, 2020, 4:56
49
I’m having this problem as well. Bot is unresponsive. Can’t get the chat ID at all
@kuba-orlik Was finally able to do it!
Enter the following command on your browser.
https://api.telegram.org/bot<token>/getUpdates
It should return a JSON response like the following
{"ok":true,"result":{"id":**xxxxxxxxxx**,"is_bot":true,"first_name":"forumbot","username":"mappy_forum_bot","can_join_groups":true,"can_read_all_group_messages":false,"supports_inline_queries":false}}
Chat ID’s the value in the id key. Good luck!
3 « J'aime »
Thanks!
Some time ago I entered /rant as a sole message into chat and the bot responded with the ID as well
2 « J'aime »
efeefe
(Felipe Schmidt Fonseca)
Juin 11, 2020, 1:53
51
I’m stuck here. Installed the plugin, added the token but can not see the “Add Channel” button anywhere.
david
(David Taylor)
Juin 11, 2020, 1:55
52
Make sure you step through the main plugin instructions . Have you enabled the plugin, and the telegram provider? After that, you should see the UI:
efeefe
(Felipe Schmidt Fonseca)
Juin 11, 2020, 2:07
54
I did enable the plugin and telegram provider. But I see no tabs:
(it’s in portuguese, but the UI is the same)
I’m running 2.5.0.beta7 on Digital Ocean / Ubuntu.
efeefe
(Felipe Schmidt Fonseca)
Juin 11, 2020, 2:13
56
Yeah, that’s where I came from.
If I click the “settings” to the right of discourse-chat-integration, I end up here:
david
(David Taylor)
Juin 11, 2020, 2:26
57
Sorry, the interface here isn’t ideal. You need to click “Integrações de Bate-Papo” on the left of the first screenshot. Don’t click the “settings” button
1 « J'aime »
efeefe
(Felipe Schmidt Fonseca)
Juin 11, 2020, 4:08
58
Ahh, great! That’s kind of odd but finally found. Thanks for your help.
1 « J'aime »
Bathinda
(Bathinda Helper)
Août 4, 2020, 1:24
59
I’m not able to get chat id from my telegram channel list and from a telegram group.
I created a bot and using Chat Integration Plugin, filled its token into Discourse settings. And now I added that bot to a telegram channel list and also to a telegram group (as admin).
Now I need to get channel IDs to create channels in https://bathindahelper.com/admin/plugins/chat/telegram . [/getchatid command doesn’t work in any]
Kindly guide, as why I’m not getting any chat id from Telegram bot/channel/group? I’m only able to get just one chat id, thru bot, thru this browser command:
https://api.telegram.org/bot1379583420:ASOMELETTERSVQHVc/getupdates
Also I’m confused, Am I supposed to get two different ‘chat-IDs’ from telegram? Or would I get 3, one for bot, another for channel and yet another for group?
Apologies if this is the wrong place to post, but this does appear to be broken at the moment. Installing the integration and setting up the bot goes fine however notifications never go through and chat commands never get replied to.
Querying the Telegram API for currently setup webhooks for the bot returns a webhook but without a URL so maybe that job is failing?
Heres the response form telegrams getWebhookInfo endpoint:
{
"ok": true,
"result": {
"url": "",
"has_custom_certificate": false,
"pending_update_count": 17
}
}
Edit: I manually ran DiscourseChat::Provider::TelegramProvider.setup_webhook() in the rails shell to setup the webhook and it sorta works but hooks from Telegram 404 when hitting Discourse:
POST /chat-integration/telegram/command/<redacted> HTTP/1.1" "-" "telegram_command/command" 404 3329 "-" 0.020 0.019 "-"
I’ve checked and the redacted part of of the token matches the chat_integration_telegram_secret setting in the database.
Bathinda
(Bathinda Helper)
Août 10, 2020, 3:21
61
Not able to find any msg to send a test msg to Telegram bot. It seems to have happened after latest updates.
Even those posts exist in my site
david
(David Taylor)
Novembre 2, 2020, 5:09
62
Sorry for the very long delay here! I just pushed a fix which should help with these issues:
https://github.com/discourse/discourse-chat-integration/commit/1dc753771b427ba6ac07e62dd77797edee8c3aac
If you already have the plugin set up, you’ll need to disable and reenable the chat_integration_telegram_enabled setting for things to reconfigure correctly.
3 « J'aime »
Bathinda
(Bathinda Helper)
Novembre 3, 2020, 2:51
63
Thanks.
I disabled the said setting and then re-enabled the same. Hope that would be all that’s needed now.