Skip to content
Open
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
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.telegram/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In order to send a message, an action must be used instead.
|-------------------|---------|----------|---------------------------------------------------------------------------------------------------------------------|
| `chatIds` | | Yes | A list of chatIds that are entered one per line in the UI, or are comma separated values when using textual config. |
| `botToken` | | Yes | Authentication token that looks like 1122334455:AABBCCDDEEFFGG1122334455667788 |
| `parseMode` | None | No | Support for formatted messages, values: Markdown or HTML. |
| `parseMode` | None | No | Support for formatted messages, values: Markdown, MarkdownV2 or HTML. |
| `proxyHost` | None | No | Proxy host for telegram binding. |
| `proxyPort` | None | No | Proxy port for telegram binding. |
| `proxyType` | SOCKS5 | No | Type of proxy server for telegram binding (SOCKS5 or HTTP). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public void initialize() {
try {
parseMode = ParseMode.valueOf(parseModeAsString);
} catch (IllegalArgumentException e) {
logger.warn("parseMode is invalid and will be ignored. Only Markdown or HTML are allowed values");
logger.warn(
"parseMode is invalid and will be ignored. Only Markdown, MarkdownV2 or HTML are allowed values");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ thing-type.config.telegram.telegramBot.chatIds.description = One or more chat id
thing-type.config.telegram.telegramBot.longPollingTime.label = Long Polling Time
thing-type.config.telegram.telegramBot.longPollingTime.description = Enter the long polling time in seconds.
thing-type.config.telegram.telegramBot.parseMode.label = Parse Mode
thing-type.config.telegram.telegramBot.parseMode.description = Support for formatted messages, values: Markdown or HTML. Default: no formatting is used.
thing-type.config.telegram.telegramBot.parseMode.description = Support for formatted messages, values: Markdown, MarkdownV2 or HTML. Default: no formatting is used.
thing-type.config.telegram.telegramBot.parseMode.option. = No Formatting
thing-type.config.telegram.telegramBot.parseMode.option.HTML = HTML
thing-type.config.telegram.telegramBot.parseMode.option.Markdown = Markdown
thing-type.config.telegram.telegramBot.parseMode.option.MarkdownV2 = MarkdownV2
thing-type.config.telegram.telegramBot.proxyHost.label = Proxy Host
thing-type.config.telegram.telegramBot.proxyHost.description = Enter your proxy host. It will be used for telegram binding only and doesn't affect entire system.
thing-type.config.telegram.telegramBot.proxyPort.label = Proxy Port
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
<option value="">No Formatting</option>
<option value="HTML">HTML</option>
<option value="Markdown">Markdown</option>
<option value="MarkdownV2">MarkdownV2</option>
</options>
<default></default>
<description>Support for formatted messages, values: Markdown or HTML. Default: no formatting is used.</description>
<description>Support for formatted messages, values: Markdown, MarkdownV2 or HTML. Default: no formatting is used.</description>
</parameter>
<parameter name="proxyHost" type="text">
<context>network-address</context>
Expand Down