Class TelegramEndpoint
Telegram Bot endpoint.
Path segment determines the operation mode:
"receive" — consumer (long polling)
"send" — producer: text message
"document" — producer: file/document (body must be Stream or byte[])
"photo" — producer: photo (body must be Stream or byte[])
"answer" — producer: answer a callback query (no chatId needed)
"edit" — producer: edit an existing message
"delete" — producer: delete a message
"download" — producer: fetch a file the user sent (no chatId needed);
the bytes land in Out.Body
public sealed class TelegramEndpoint : EndpointBase<TelegramEndpointOptions>, IEndpoint, IEndpointStatistics
Inheritance
Implements
Properties
Mode
Mode parsed from URI path: receive | send | document | photo | answer | edit | delete | download.
public string Mode { get; }
Methods
CreateConsumer(IProcessor)
Creates a consumer for receiving messages from this endpoint.
public override IConsumer CreateConsumer(IProcessor processor)
CreateProducer()
Creates a producer for sending messages to this endpoint.
public override IProducer CreateProducer()
Constructors
TelegramEndpoint(EndpointUri, IComponent, TelegramEndpointOptions)
Creates a Telegram endpoint.