Доработан стартер адаптеров
This commit is contained in:
@@ -19,7 +19,7 @@ public static class TelegramUpdateMapper
|
||||
/// <summary>
|
||||
/// Маппинг Telegram Update в UpdateContext BotPages.
|
||||
/// </summary>
|
||||
public static UpdateContext Map(Update update, TelegramBotClient client)
|
||||
public static UpdateContext Map(string MessagerType, Update update, TelegramBotClient client)
|
||||
{
|
||||
var chat = update.Message?.Chat ?? update.CallbackQuery?.Message?.Chat;
|
||||
var user = update.Message?.From ?? update.CallbackQuery?.From;
|
||||
@@ -131,7 +131,7 @@ public static class TelegramUpdateMapper
|
||||
|
||||
return new UpdateContext
|
||||
{
|
||||
MessengerType = "Telegram",
|
||||
MessengerType = MessagerType,
|
||||
User = userContext,
|
||||
Chat = chatContext,
|
||||
Text = text,
|
||||
|
||||
Reference in New Issue
Block a user