]> git.basschouten.com Git - openhab-addons.git/blob
9b6787aa4267f32e114998877850b0dc7b62cc8b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.telegram.bot;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Provides the actions for the Telegram API.
20  *
21  * @author Laurent Garnier - Initial contribution
22  */
23 @NonNullByDefault
24 public interface ITelegramActions {
25
26     public boolean sendTelegramAnswer(@Nullable Long chatId, @Nullable String replyId, @Nullable String message);
27
28     public boolean sendTelegramAnswer(@Nullable String replyId, @Nullable String message);
29
30     public boolean sendTelegram(@Nullable Long chatId, @Nullable String message);
31
32     public boolean sendTelegram(@Nullable String message);
33
34     public boolean sendTelegramQuery(@Nullable Long chatId, @Nullable String message, @Nullable String replyId,
35             @Nullable String... buttons);
36
37     public boolean sendTelegramQuery(@Nullable String message, @Nullable String replyId, @Nullable String... buttons);
38
39     public boolean sendTelegram(@Nullable Long chatId, @Nullable String message, @Nullable Object... args);
40
41     public boolean sendTelegram(@Nullable String message, @Nullable Object... args);
42
43     public boolean sendTelegramPhoto(@Nullable Long chatId, @Nullable String photoURL, @Nullable String caption,
44             @Nullable String username, @Nullable String password);
45
46     public boolean sendTelegramPhoto(@Nullable String photoURL, @Nullable String caption, @Nullable String username,
47             @Nullable String password);
48 }