mirror of
https://github.com/42wim/matterbridge.git
synced 2025-06-17 20:27:28 +02:00
Add syntax highlighting
parent
f97572c5a4
commit
797ff9c6bc
@ -1,4 +1,4 @@
|
|||||||
```
|
```toml
|
||||||
[telegram.mytelegram]
|
[telegram.mytelegram]
|
||||||
#See https://core.telegram.org/bots#6-botfather
|
#See https://core.telegram.org/bots#6-botfather
|
||||||
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
|
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
|
||||||
@ -17,11 +17,11 @@ Matterbridge can output your chat number as debug information. Here's how.
|
|||||||
- Start Matterbridge with your new configuration in debug mode like so: ``` matterbridge -debug -conf matterbridge.toml```
|
- Start Matterbridge with your new configuration in debug mode like so: ``` matterbridge -debug -conf matterbridge.toml```
|
||||||
- Create traffic in your group, chat up your bot.
|
- Create traffic in your group, chat up your bot.
|
||||||
- Matterbridge will output debug information, this will look similar to this
|
- Matterbridge will output debug information, this will look similar to this
|
||||||
```
|
```
|
||||||
[0009] DEBUG telegram: <= Message is config.Message{Text:"test from telegram", Channel:"-987654321", Username:"John Doe", UserID:"123456789", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{wall:0x0, ext:> 0, loc:(*time.Location)(nil)}, ID:"31", Extra:map[string][]interface {}{}}
|
[0009] DEBUG telegram: <= Message is config.Message{Text:"test from telegram", Channel:"-987654321", Username:"John Doe", UserID:"123456789", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{wall:0x0, ext:> 0, loc:(*time.Location)(nil)}, ID:"31", Extra:map[string][]interface {}{}}
|
||||||
```
|
```
|
||||||
or
|
or
|
||||||
```
|
```
|
||||||
[0024] DEBUG telegram: => Receiving config.Message{Text:"test from xmpp", Channel:"-987654321", Username:"[xmpp] <userredacted> ", 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)}
|
[0024] DEBUG telegram: => Receiving config.Message{Text:"test from xmpp", Channel:"-987654321", Username:"[xmpp] <userredacted> ", 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.
|
- The large *negative* number in behind ```Channel:``` is your channel number. Go configure the Matterbridge gateway section with it.
|
Loading…
x
Reference in New Issue
Block a user