2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.telegram.internal;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * The {@link TelegramConfiguration} class contains fields mapping thing configuration parameters.
23 * @author Jens Runge - Initial contribution
26 public class TelegramConfiguration {
29 * Sample configuration parameter. Replace with your own.
31 private @Nullable String botUsername;
32 private @Nullable String botToken;
33 private @Nullable List<String> chatIds;
34 private @Nullable String proxyHost;
35 private @Nullable Integer proxyPort;
36 private @Nullable String proxyType;
37 private String parseMode = "";
38 private int longPollingTime;
40 public @Nullable String getBotUsername() {
44 public @Nullable String getBotToken() {
48 public @Nullable List<String> getChatIds() {
52 public String getParseMode() {
56 public @Nullable String getProxyHost() {
60 public @Nullable Integer getProxyPort() {
64 public @Nullable String getProxyType() {
68 public int getLongPollingTime() {
69 return longPollingTime;