Delen via


TelegramChannelProperties Class

Definition

The parameters to provide for the Telegram channel.

public class TelegramChannelProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.BotService.Models.TelegramChannelProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.BotService.Models.TelegramChannelProperties>
public class TelegramChannelProperties
type TelegramChannelProperties = class
    interface IJsonModel<TelegramChannelProperties>
    interface IPersistableModel<TelegramChannelProperties>
type TelegramChannelProperties = class
Public Class TelegramChannelProperties
Implements IJsonModel(Of TelegramChannelProperties), IPersistableModel(Of TelegramChannelProperties)
Public Class TelegramChannelProperties
Inheritance
TelegramChannelProperties
Implements

Constructors

TelegramChannelProperties(Boolean)

Initializes a new instance of TelegramChannelProperties.

Properties

AccessToken

The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.

IsEnabled

Whether this channel is enabled for the bot.

IsValidated

Whether this channel is validated for the bot.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<TelegramChannelProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<TelegramChannelProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<TelegramChannelProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TelegramChannelProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<TelegramChannelProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to