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;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link TelegramBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Jens Runge - Initial contribution
27 public class TelegramBindingConstants {
29 private static final String BINDING_ID = "telegram";
30 public static final Set<String> PHOTO_EXTENSIONS = Set.of(".jpg", ".jpeg", ".png", ".gif", ".jpe", ".jif", ".jfif",
33 // List of all Thing Type UIDs
34 public static final ThingTypeUID TELEGRAM_THING = new ThingTypeUID(BINDING_ID, "telegramBot");
36 // List of all Channel ids
37 public static final String LASTMESSAGETEXT = "lastMessageText";
38 public static final String LASTMESSAGEURL = "lastMessageURL";
39 public static final String LASTMESSAGEDATE = "lastMessageDate";
40 public static final String LASTMESSAGENAME = "lastMessageName";
41 public static final String LASTMESSAGEUSERNAME = "lastMessageUsername";
42 public static final String CHATID = "chatId";
43 public static final String REPLYID = "replyId";
44 public static final String LONGPOLLINGTIME = "longPollingTime";
45 public static final String MESSAGEEVENT = "messageEvent";
46 public static final String MESSAGERAWEVENT = "messageRawEvent";
47 public static final String CALLBACKEVENT = "callbackEvent";
48 public static final String CALLBACKRAWEVENT = "callbackRawEvent";