diff --git a/Section-Telegram-(basic).md b/Section-Telegram-(basic).md index 7c7fe39..c9054ff 100644 --- a/Section-Telegram-(basic).md +++ b/Section-Telegram-(basic).md @@ -25,4 +25,26 @@ Matterbridge can output your chat number as debug information. Here's how. ``` [0024] DEBUG telegram: => Receiving config.Message{Text:"test from xmpp", Channel:"-987654321", Username:"[xmpp] ", UserID:"example@conference.redacted.com/userredacted", Avatar:"", Account:"xmpp.myxmpp", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbeed3ca55451a133, ext:24805708196, loc:(*time.Location)(0x55cad0c84140)}, ID:"", Extra:map[string][]interface {}(nil)} ``` -- The large *negative* number in behind ```Channel:``` is your channel number. Go configure the Matterbridge gateway section with it. \ No newline at end of file +- The large *negative* number in behind ```Channel:``` is your channel number. Go configure the Matterbridge gateway section with it. + +**Note:** You to view messages from the channel in the matterbridge output, you need to adjust privacy settings for your bot or give your bot admin privilages in your channel. +``` +Sequence within a BotFather chat: + +You: /setprivacy + +BotFather: Choose a bot to change group messages settings. + +You: @your_name_bot + +BotFather: 'Enable' - your bot will only receive messages that either start with the '/' symbol or mention the bot by username. + +'Disable' - your bot will receive all messages that people send to groups. + +Current status is: ENABLED + +You: Disable + +BotFather: Success! The new status is: DISABLED. /help +``` +Copied from [https://stackoverflow.com/questions/38565952/how-to-receive-messages-in-group-chats-using-telegram-bot-api](https://stackoverflow.com/questions/38565952/how-to-receive-messages-in-group-chats-using-telegram-bot-api) \ No newline at end of file