Adding IDeviceSession and IDeviceSessionMethods Interface

This commit is contained in:
Florian Zevedei
2024-10-15 15:32:32 +02:00
parent bc1f1fc93d
commit db5dd7862c
17 changed files with 169 additions and 39 deletions
@@ -187,6 +187,7 @@ namespace TelegramBotBase
var sourceCode = $$"""
using System;
using System.Threading.Tasks;
using TelegramBotBase.Interfaces;
using TelegramBotBase.Sessions;
using Telegram.Bot;
using Telegram.Bot.Extensions;
@@ -232,7 +233,7 @@ namespace TelegramBotBase
sb.AppendLine(xml_comments);
sb.AppendLine($" public static async {method.ReturnType.ToDisplayString()} {method.Name}(this DeviceSession device, {parameters})");
sb.AppendLine($" public static async {method.ReturnType.ToDisplayString()} {method.Name}(this IDeviceSession device, {parameters})");
sb.AppendLine($" {{");