TelegramChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. TelegramChannelProperties
- com.
Implements
public final class TelegramChannelProperties
implements JsonSerializable<TelegramChannelProperties>
The parameters to provide for the Telegram channel.
Constructor Summary
| Constructor | Description |
|---|---|
| TelegramChannelProperties() |
Creates an instance of Telegram |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accessToken()
Get the access |
|
static
Telegram |
fromJson(JsonReader jsonReader)
Reads an instance of Telegram |
| boolean |
isEnabled()
Get the is |
| Boolean |
isValidated()
Get the is |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Telegram |
withAccessToken(String accessToken)
Set the access |
|
Telegram |
withIsEnabled(boolean isEnabled)
Set the is |
|
Telegram |
withIsValidated(Boolean isValidated)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
TelegramChannelProperties
public TelegramChannelProperties()
Creates an instance of TelegramChannelProperties class.
Method Details
accessToken
public String accessToken()
Get the accessToken property: The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
fromJson
public static TelegramChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of TelegramChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
isValidated
public Boolean isValidated()
Get the isValidated property: Whether this channel is validated for the bot.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAccessToken
public TelegramChannelProperties withAccessToken(String accessToken)
Set the accessToken property: The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns:
withIsEnabled
public TelegramChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withIsValidated
public TelegramChannelProperties withIsValidated(Boolean isValidated)
Set the isValidated property: Whether this channel is validated for the bot.
Parameters:
Returns: