انتقل إلى علامة التبويب Plugins، ثم Chat Integrations
انتقل إلى علامة التبويب Telegram
ملاحظة: إذا لم تكن علامة التبويب Telegram مرئية، فهذا يعني أن شيئًا ما سار بشكل خاطئ عند الاتصال بواجهة برمجة التطبيقات الخاصة بهم. يجب عليك التحقق من سجلات موقعك، ثم المحاولة مرة أخرى عن طريق إعادة تفعيل الإعداد chat_integration_telegram_enabled
إضافة قناة
أضف البوت الخاص بك إلى محادثة جماعية على تيليجرام (أو ابدأ محادثة خاصة معه)
أرسل أي رسالة إلى البوت (أو في الدردشة الجماعية التي تمت إضافة البوت إليها). يجب أن تتلقى رسالة بمعرف الدردشة (Chat ID). يمكنك أيضًا إرسال رسالة تبدأ بـ /getchatid.
لإرسال الإشعارات إلى قناة بث تيليجرام، أضف البوت كمسؤول للقناة، ثم أرسل الرسالة
/getchatid
للحصول على معرف الدردشة. ثم اتبع التعليمات أعلاه للإعداد على Discourse. بالنسبة للقنوات العامة، يمكنك أيضًا استخدام التنسيق @channelname (على سبيل المثال، @myforumchannel) بدلاً من معرف الدردشة الرقمي.
في قناة بث، لا يمكنك استخدام الأوامر المائلة لإدارة القواعد.
الأوامر المائلة (Slash commands)
يمكنك استخدام “الأوامر المائلة” للتحكم في القواعد من Telegram. تحقق من تمكين إعداد الموقع chat integration telegram enable slash commands. لاحظ أن هذا يمنح أي شخص يمكنه النشر في الدردشة الجماعية إذنًا لتعديل القواعد.
لمعرفة كيفية استخدامها، أرسل فقط /help (أو /help@my-forum-bot إذا كنت في دردشة جماعية) وسيرسل لك البوت رسالة مساعدة.
إعداد الإكمال التلقائي للأوامر (غير ضروري، ولكنه يسهل الاستخدام بكثير)
حدد البوت الخاص بك، وانقر فوق edit bot، ثم edit commands
انسخ والصق قائمة الأوامر هذه
watch - [category] [tag:name] | notify this channel for new topics and new replies matching rule
follow - [category] [tag:name] | notify this channel for new topics matching rule
mute - [category] [tag:name] | block notifications to this channel for posts matching rule
remove - [rule number] | remove a rule (see /status for numbers)
status - list all rules for this channel
help - display a help message
يجب أن تحصل على رسالة نجاح
تخصيصات أخرى للبوت
تحدث إلى BotFather الخاص بـ Telegram لتخصيص الاسم والوصف والأيقونة للبوت الخاص بك. يجب أن تترك “خصوصية المجموعة” (Group Privacy) ممكّنة، وإلا سيحاول البوت الرد على كل رسالة في الدردشة الجماعية.
Not currently. It is possibly something that could be added (this is how Slack works), but given there is no concept of “organisations” on telegram, we would need to be careful that only public-facing categories are visible.
For per-user stuff you could try the telegram-notifications-plugin
I’ve set it up, and it works with bot itself. However, when I set it up for public channel and try to test, an error “422 No Reason Phrase” occurs.
Could someone help me out?
Hello,
Can you tell me what different Telegram notifications using the discourse-chat-integration plugin and Telegram Notifications Plugin (discourse-telegram-notifications)
Whenever users reply to the Telegram bot message, it keeps informing them of the current chat ID, telling them to configure something different on the admin panel.
I have the actual message in Portuguese:
Este chat está configurado WTTD Fórum. Configure-o no painel de administração. (ID do bate-papo:-1001093143218)
Google translated:
This chat is configured for WTTD Forum. Configure it in the administration panel. (Chat ID: -1001093143218)
It’s quite annoying.
Also, I’ve disabled chat integration telegram enable slash commands, but it still replies with the command list.
I’ve configured everything successfully, except that whenever a new member leaves/adds into the telegram group which has the ‘chat integration bot’ as one of this groups member, I receive this msg in the telegram group:
New rule: /[watch|follow|mute] [category] [tag:name]
(you must specify a rule type and at least one category or tag)
watch – notify this channel for new topics and new replies
follow – notify this channel for new topics
mute – block notifications to this channel
Remove rule: /remove [rule number]
([rule number] can be found by running /status)
List rules: /status
Help: /help
This msg has started irritating every time a member is added or removed into/from the telegram group.
And if I create a telegram broadcast/channel and add the chat integration bot into that, this problem doesn’t arise therein.