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 committed Dec 9, 2020
commit f37f50c8e1bfbc366c93ca389412f4ed8e845f43
4 changes: 3 additions & 1 deletion lib/MatterbridgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,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