Class TelegramUpdateMapper
Maps Telegram / objects to
headers using the canonical constants.
Shared between (long-polling) and
(webhook) so both paths
produce identical header semantics.
public static class TelegramUpdateMapper
Inheritance
Methods
MapMessage(Message, UpdateType, IMessage)
Populates message body and headers from a Telegram message update.
public static void MapMessage(Message msg, UpdateType updateType, IMessage message)
MapUpdate(Update, IMessage)
Populates message body and headers from a generic .
public static bool MapUpdate(Update update, IMessage message)