Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refs #4719 fix telegram channel config key
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier authored and backportbot[bot] committed Dec 9, 2020
commit 9d8a561563eb86050c458ff80ce83a35562ceeb0
4 changes: 3 additions & 1 deletion lib/MatterbridgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ private function generateConfig(array $bridge): string {
$content .= "\n";
} elseif ($type === 'msteams') {
$content .= sprintf(' threadId = "%s"', $part['threadid']) . "\n\n";
} elseif (in_array($type, ['telegram', 'steam'])) {
} elseif ($type === 'telegram') {
$content .= sprintf(' channel = "%s"', $part['channel']) . "\n\n";
} elseif ($type === 'steam') {
$content .= sprintf(' chatid = "%s"', $part['chatid']) . "\n\n";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ export default {
placeholder: t('spreed', 'API token'),
icon: 'icon-category-auth',
},
chatid: {
channel: {
type: 'text',
placeholder: t('spreed', 'Chat ID'),
placeholder: t('spreed', 'Channel'),
icon: 'icon-group',
},
},
Expand Down