< Summary

Information
Class: TeleFlow.Telegram.MessageActions
Assembly: TeleFlow.Framework
File(s): File 1: /_/src/TeleFlow.Framework/MessageActions.cs
File 2: /_/src/TeleFlow.Framework/MessageActions.Media.cs
Line coverage
34%
Covered lines: 97
Uncovered lines: 185
Coverable lines: 282
Total lines: 1023
Line coverage: 34.3%
Branch coverage
87%
Covered branches: 7
Total branches: 8
Branch coverage: 87.5%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: .ctor(...)100%11100%
File 1: AnswerAsync(...)100%11100%
File 1: AnswerAsync(...)100%11100%
File 1: AnswerAsync(...)100%11100%
File 1: AnswerAsync(...)100%210%
File 1: AnswerAsync(...)100%11100%
File 1: AnswerAsync(...)100%210%
File 1: AnswerAsync(...)100%11100%
File 1: AnswerAsync(...)100%11100%
File 1: ReplyAsync(...)100%11100%
File 1: ReplyAsync(...)100%11100%
File 1: ReplyAsync(...)100%210%
File 1: ReplyAsync(...)100%210%
File 1: ReplyAsync(...)100%210%
File 1: ReplyAsync(...)100%11100%
File 1: ReplyAsync(...)100%210%
File 1: ReplyAsync(...)100%11100%
File 1: SendEphemeralAsync(...)100%11100%
File 1: SendEphemeralAsync(...)100%210%
File 1: ReplyTextAsync(...)100%11100%
File 1: ReplyTextAsync(...)100%210%
File 1: ReplyTextAsync(...)100%210%
File 1: SendTextAsync(...)100%11100%
File 1: SendFormattedTextAsync(...)100%11100%
File 1: DeleteAsync(...)50%2263.63%
File 1: SendEphemeralCoreAsync(...)100%11100%
File 1: CreateReplyConfiguration(...)100%44100%
File 1: ResolveCancellationToken(...)100%22100%
File 2: AnswerPhotoAsync(...)100%11100%
File 2: AnswerPhotoAsync(...)100%210%
File 2: AnswerPhotoAsync(...)100%11100%
File 2: AnswerPhotoAsync(...)100%210%
File 2: ReplyPhotoAsync(...)100%11100%
File 2: ReplyPhotoAsync(...)100%210%
File 2: ReplyPhotoAsync(...)100%210%
File 2: ReplyPhotoAsync(...)100%210%
File 2: AnswerDocumentAsync(...)100%210%
File 2: AnswerDocumentAsync(...)100%210%
File 2: AnswerDocumentAsync(...)100%210%
File 2: AnswerDocumentAsync(...)100%210%
File 2: ReplyDocumentAsync(...)100%210%
File 2: ReplyDocumentAsync(...)100%210%
File 2: ReplyDocumentAsync(...)100%210%
File 2: ReplyDocumentAsync(...)100%210%
File 2: AnswerVideoAsync(...)100%210%
File 2: AnswerVideoAsync(...)100%210%
File 2: AnswerVideoAsync(...)100%210%
File 2: AnswerVideoAsync(...)100%210%
File 2: ReplyVideoAsync(...)100%210%
File 2: ReplyVideoAsync(...)100%210%
File 2: ReplyVideoAsync(...)100%210%
File 2: ReplyVideoAsync(...)100%210%
File 2: AnswerAnimationAsync(...)100%210%
File 2: AnswerAnimationAsync(...)100%210%
File 2: AnswerAnimationAsync(...)100%210%
File 2: AnswerAnimationAsync(...)100%210%
File 2: ReplyAnimationAsync(...)100%210%
File 2: ReplyAnimationAsync(...)100%210%
File 2: ReplyAnimationAsync(...)100%210%
File 2: ReplyAnimationAsync(...)100%210%
File 2: AnswerAudioAsync(...)100%210%
File 2: AnswerAudioAsync(...)100%210%
File 2: AnswerAudioAsync(...)100%210%
File 2: AnswerAudioAsync(...)100%210%
File 2: ReplyAudioAsync(...)100%210%
File 2: ReplyAudioAsync(...)100%210%
File 2: ReplyAudioAsync(...)100%210%
File 2: ReplyAudioAsync(...)100%210%
File 2: AnswerVoiceAsync(...)100%210%
File 2: AnswerVoiceAsync(...)100%210%
File 2: AnswerVoiceAsync(...)100%210%
File 2: AnswerVoiceAsync(...)100%210%
File 2: ReplyVoiceAsync(...)100%210%
File 2: ReplyVoiceAsync(...)100%210%
File 2: ReplyVoiceAsync(...)100%210%
File 2: ReplyVoiceAsync(...)100%210%
File 2: AnswerStickerAsync(...)100%210%
File 2: AnswerStickerAsync(...)100%210%
File 2: ReplyStickerAsync(...)100%11100%
File 2: ReplyStickerAsync(...)100%210%
File 2: AnswerVideoNoteAsync(...)100%210%
File 2: AnswerVideoNoteAsync(...)100%210%
File 2: ReplyVideoNoteAsync(...)100%210%
File 2: ReplyVideoNoteAsync(...)100%210%
File 2: SendPhotoAsync(...)100%11100%
File 2: SendDocumentAsync(...)100%210%
File 2: SendVideoAsync(...)100%210%
File 2: SendAnimationAsync(...)100%210%
File 2: SendAudioAsync(...)100%210%
File 2: SendVoiceAsync(...)100%210%
File 2: SendStickerAsync(...)100%11100%
File 2: SendVideoNoteAsync(...)100%210%
File 2: get_CurrentChatId()100%11100%

File(s)

/_/src/TeleFlow.Framework/MessageActions.cs

#LineLine coverage
 1using TeleFlow.Telegram.Formatting;
 2using TeleFlow.Telegram.Internal;
 3using TeleFlow.Telegram.Schema.Abstractions;
 4using TeleFlow.Telegram.Schema.Types;
 5
 6namespace TeleFlow.Telegram;
 7
 8public sealed partial class MessageActions
 9{
 10    private readonly MessageContext _context;
 11
 12    internal MessageActions(MessageContext context)
 13    {
 30014        _context = context;
 30015    }
 16
 17    public Task<Message> AnswerAsync(string text, CancellationToken cancellationToken = default)
 18    {
 419        return SendTextAsync(text, replyMarkup: null, replyToCurrentMessage: false, cancellationToken);
 20    }
 21
 22    /// <summary>
 23    /// Sends formatted text to the current chat without replying to the current message.
 24    /// The formatted value carries its explicit Telegram parse mode and does not use the client's parse-mode default.
 25    /// </summary>
 26    public Task<Message> AnswerAsync(
 27        TelegramFormattedText text,
 28        CancellationToken cancellationToken = default)
 29    {
 130        return SendFormattedTextAsync(text, replyMarkup: null, replyToCurrentMessage: false, cancellationToken);
 31    }
 32
 33    public Task<Message> AnswerAsync(
 34        string text,
 35        InlineKeyboardMarkup inlineKeyboard,
 36        CancellationToken cancellationToken = default)
 37    {
 138        ArgumentNullException.ThrowIfNull(inlineKeyboard);
 139        return AnswerAsync(
 140            text,
 141            ReplyMarkup.From(inlineKeyboard),
 142            cancellationToken);
 43    }
 44
 45    /// <summary>
 46    /// Sends formatted text with an inline keyboard to the current chat without replying to the current message.
 47    /// </summary>
 48    public Task<Message> AnswerAsync(
 49        TelegramFormattedText text,
 50        InlineKeyboardMarkup inlineKeyboard,
 51        CancellationToken cancellationToken = default)
 52    {
 053        ArgumentNullException.ThrowIfNull(inlineKeyboard);
 054        return SendFormattedTextAsync(
 055            text,
 056            ReplyMarkup.From(inlineKeyboard),
 057            replyToCurrentMessage: false,
 058            cancellationToken);
 59    }
 60
 61    public Task<Message> AnswerAsync(
 62        string text,
 63        ReplyKeyboard keyboard,
 64        CancellationToken cancellationToken = default)
 65    {
 166        ArgumentNullException.ThrowIfNull(keyboard);
 167        return AnswerAsync(
 168            text,
 169            ReplyMarkup.From(keyboard.ToMarkup()),
 170            cancellationToken);
 71    }
 72
 73    public Task<Message> AnswerAsync(
 74        string text,
 75        KeyboardRemove keyboardRemove,
 76        CancellationToken cancellationToken = default)
 77    {
 078        ArgumentNullException.ThrowIfNull(keyboardRemove);
 079        return AnswerAsync(
 080            text,
 081            ReplyMarkup.From(keyboardRemove.ToMarkup()),
 082            cancellationToken);
 83    }
 84
 85    public Task<Message> AnswerAsync(
 86        string text,
 87        ForceReplyBuilder forceReply,
 88        CancellationToken cancellationToken = default)
 89    {
 190        ArgumentNullException.ThrowIfNull(forceReply);
 191        return AnswerAsync(
 192            text,
 193            ReplyMarkup.From(forceReply.ToMarkup()),
 194            cancellationToken);
 95    }
 96
 97    public Task<Message> AnswerAsync(
 98        string text,
 99        ReplyMarkup replyMarkup,
 100        CancellationToken cancellationToken = default)
 101    {
 3102        ArgumentNullException.ThrowIfNull(replyMarkup);
 3103        return SendTextAsync(text, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 104    }
 105
 106    public Task<Message> ReplyAsync(string text, CancellationToken cancellationToken = default)
 107    {
 3108        return SendTextAsync(text, replyMarkup: null, replyToCurrentMessage: true, cancellationToken);
 109    }
 110
 111    /// <summary>
 112    /// Sends formatted text as a reply to the current message.
 113    /// The formatted value carries its explicit Telegram parse mode and does not use the client's parse-mode default.
 114    /// </summary>
 115    public Task<Message> ReplyAsync(
 116        TelegramFormattedText text,
 117        CancellationToken cancellationToken = default)
 118    {
 1119        return SendFormattedTextAsync(text, replyMarkup: null, replyToCurrentMessage: true, cancellationToken);
 120    }
 121
 122    public Task<Message> ReplyAsync(
 123        string text,
 124        InlineKeyboardMarkup inlineKeyboard,
 125        CancellationToken cancellationToken = default)
 126    {
 0127        ArgumentNullException.ThrowIfNull(inlineKeyboard);
 0128        return ReplyAsync(
 0129            text,
 0130            ReplyMarkup.From(inlineKeyboard),
 0131            cancellationToken);
 132    }
 133
 134    /// <summary>
 135    /// Sends formatted text with an inline keyboard as a reply to the current message.
 136    /// </summary>
 137    public Task<Message> ReplyAsync(
 138        TelegramFormattedText text,
 139        InlineKeyboardMarkup inlineKeyboard,
 140        CancellationToken cancellationToken = default)
 141    {
 0142        ArgumentNullException.ThrowIfNull(inlineKeyboard);
 0143        return SendFormattedTextAsync(
 0144            text,
 0145            ReplyMarkup.From(inlineKeyboard),
 0146            replyToCurrentMessage: true,
 0147            cancellationToken);
 148    }
 149
 150    public Task<Message> ReplyAsync(
 151        string text,
 152        ReplyKeyboard keyboard,
 153        CancellationToken cancellationToken = default)
 154    {
 0155        ArgumentNullException.ThrowIfNull(keyboard);
 0156        return ReplyAsync(
 0157            text,
 0158            ReplyMarkup.From(keyboard.ToMarkup()),
 0159            cancellationToken);
 160    }
 161
 162    public Task<Message> ReplyAsync(
 163        string text,
 164        KeyboardRemove keyboardRemove,
 165        CancellationToken cancellationToken = default)
 166    {
 1167        ArgumentNullException.ThrowIfNull(keyboardRemove);
 1168        return ReplyAsync(
 1169            text,
 1170            ReplyMarkup.From(keyboardRemove.ToMarkup()),
 1171            cancellationToken);
 172    }
 173
 174    public Task<Message> ReplyAsync(
 175        string text,
 176        ForceReplyBuilder forceReply,
 177        CancellationToken cancellationToken = default)
 178    {
 0179        ArgumentNullException.ThrowIfNull(forceReply);
 0180        return ReplyAsync(
 0181            text,
 0182            ReplyMarkup.From(forceReply.ToMarkup()),
 0183            cancellationToken);
 184    }
 185
 186    public Task<Message> ReplyAsync(
 187        string text,
 188        ReplyMarkup replyMarkup,
 189        CancellationToken cancellationToken = default)
 190    {
 1191        ArgumentNullException.ThrowIfNull(replyMarkup);
 1192        return SendTextAsync(text, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 193    }
 194
 195    /// <summary>
 196    /// Sends a text message visible only to the user represented by the current group or supergroup update.
 197    /// </summary>
 198    public Task<EphemeralMessageReference> SendEphemeralAsync(
 199        string text,
 200        CancellationToken cancellationToken = default)
 201    {
 2202        return SendEphemeralCoreAsync(text, inlineKeyboard: null, cancellationToken);
 203    }
 204
 205    /// <summary>
 206    /// Sends a text message with an inline keyboard visible only to the user represented by the current group or superg
 207    /// </summary>
 208    public Task<EphemeralMessageReference> SendEphemeralAsync(
 209        string text,
 210        InlineKeyboardMarkup replyMarkup,
 211        CancellationToken cancellationToken = default)
 212    {
 0213        ArgumentNullException.ThrowIfNull(replyMarkup);
 0214        return SendEphemeralCoreAsync(text, replyMarkup, cancellationToken);
 215    }
 216
 217    [Obsolete("Use ReplyAsync instead.")]
 218    public Task<Message> ReplyTextAsync(string text, CancellationToken cancellationToken = default)
 219    {
 1220        return ReplyAsync(text, cancellationToken);
 221    }
 222
 223    [Obsolete("Use ReplyAsync instead.")]
 224    public Task<Message> ReplyTextAsync(
 225        string text,
 226        InlineKeyboardMarkup inlineKeyboard,
 227        CancellationToken cancellationToken = default)
 228    {
 0229        ArgumentNullException.ThrowIfNull(inlineKeyboard);
 0230        return ReplyAsync(text, inlineKeyboard, cancellationToken);
 231    }
 232
 233    [Obsolete("Use ReplyAsync instead.")]
 234    public Task<Message> ReplyTextAsync(
 235        string text,
 236        ReplyMarkup replyMarkup,
 237        CancellationToken cancellationToken = default)
 238    {
 0239        ArgumentNullException.ThrowIfNull(replyMarkup);
 0240        return ReplyAsync(text, replyMarkup, cancellationToken);
 241    }
 242
 243    private Task<Message> SendTextAsync(
 244        string text,
 245        ReplyMarkup? replyMarkup,
 246        bool replyToCurrentMessage,
 247        CancellationToken cancellationToken,
 248        TelegramParseMode? parseMode = null)
 249    {
 13250        ArgumentException.ThrowIfNullOrWhiteSpace(text);
 13251        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 252
 13253        return _context.Bot.SendMessageAsync(
 13254            IntegerString.From(_context.TelegramChat.Id),
 13255            text,
 13256            receiverUserId: reply.ReceiverUserId,
 13257            replyParameters: reply.ReplyParameters,
 13258            replyMarkup: replyMarkup,
 13259            parseMode: parseMode,
 13260            cancellationToken: ResolveCancellationToken(cancellationToken));
 261    }
 262
 263    private Task<Message> SendFormattedTextAsync(
 264        TelegramFormattedText text,
 265        ReplyMarkup? replyMarkup,
 266        bool replyToCurrentMessage,
 267        CancellationToken cancellationToken)
 268    {
 2269        ArgumentNullException.ThrowIfNull(text);
 270
 2271        return SendTextAsync(
 2272            text.Text,
 2273            replyMarkup,
 2274            replyToCurrentMessage,
 2275            cancellationToken,
 2276            text.ParseMode);
 277    }
 278
 279    public Task<bool> DeleteAsync(CancellationToken cancellationToken = default)
 280    {
 1281        if (_context.TelegramMessage.EphemeralMessageId is long ephemeralMessageId)
 282        {
 1283            var target = EphemeralMessageTargetResolver.ResolveForEphemeralMessage(_context.TelegramMessage);
 1284            return _context.Bot.DeleteEphemeralMessageAsync(
 1285                target.ChatId,
 1286                target.ReceiverUserId,
 1287                ephemeralMessageId,
 1288                ResolveCancellationToken(cancellationToken));
 289        }
 290
 0291        return _context.Bot.DeleteMessageAsync(
 0292            IntegerString.From(_context.TelegramChat.Id),
 0293            _context.TelegramMessage.MessageId,
 0294            ResolveCancellationToken(cancellationToken));
 295    }
 296
 297    private Task<EphemeralMessageReference> SendEphemeralCoreAsync(
 298        string text,
 299        InlineKeyboardMarkup? inlineKeyboard,
 300        CancellationToken cancellationToken)
 301    {
 2302        var target = EphemeralMessageTargetResolver.ResolveForMessage(_context.TelegramMessage);
 1303        return _context.Bot.SendEphemeralMessageAsync(
 1304            target,
 1305            text,
 1306            replyMarkup: inlineKeyboard,
 1307            cancellationToken: ResolveCancellationToken(cancellationToken));
 308    }
 309
 310    private (ReplyParameters? ReplyParameters, long? ReceiverUserId) CreateReplyConfiguration(
 311        bool replyToCurrentMessage)
 312    {
 21313        if (!replyToCurrentMessage)
 314        {
 13315            return default;
 316        }
 317
 8318        if (_context.TelegramMessage.EphemeralMessageId is long ephemeralMessageId)
 319        {
 2320            var target = EphemeralMessageTargetResolver.ResolveForEphemeralMessage(_context.TelegramMessage);
 2321            return (
 2322                new ReplyParameters { EphemeralMessageId = ephemeralMessageId },
 2323                target.ReceiverUserId);
 324        }
 325
 6326        return (new ReplyParameters { MessageId = _context.TelegramMessage.MessageId }, null);
 327    }
 328
 329    private CancellationToken ResolveCancellationToken(CancellationToken cancellationToken)
 330    {
 23331        return cancellationToken.CanBeCanceled ? cancellationToken : _context.CancellationToken;
 332    }
 333}

/_/src/TeleFlow.Framework/MessageActions.Media.cs

#LineLine coverage
 1using TeleFlow.Telegram.Schema.Abstractions;
 2using TeleFlow.Telegram.Schema.Types;
 3
 4namespace TeleFlow.Telegram;
 5
 6public sealed partial class MessageActions
 7{
 8    public Task<Message> AnswerPhotoAsync(
 9        InputFileString photo,
 10        string? caption = null,
 11        CancellationToken cancellationToken = default)
 12    {
 313        return SendPhotoAsync(photo, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, cancella
 14    }
 15
 16    public Task<Message> AnswerPhotoAsync(
 17        InputFileString photo,
 18        string? caption,
 19        TelegramParseMode? parseMode,
 20        CancellationToken cancellationToken = default)
 21    {
 022        return SendPhotoAsync(photo, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancellationTo
 23    }
 24
 25    public Task<Message> AnswerPhotoAsync(
 26        InputFileString photo,
 27        ReplyMarkup replyMarkup,
 28        string? caption = null,
 29        CancellationToken cancellationToken = default)
 30    {
 231        ArgumentNullException.ThrowIfNull(replyMarkup);
 232        return SendPhotoAsync(photo, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancellationTo
 33    }
 34
 35    public Task<Message> AnswerPhotoAsync(
 36        InputFileString photo,
 37        ReplyMarkup replyMarkup,
 38        string? caption,
 39        TelegramParseMode? parseMode,
 40        CancellationToken cancellationToken = default)
 41    {
 042        ArgumentNullException.ThrowIfNull(replyMarkup);
 043        return SendPhotoAsync(photo, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 44    }
 45
 46    public Task<Message> ReplyPhotoAsync(
 47        InputFileString photo,
 48        string? caption = null,
 49        CancellationToken cancellationToken = default)
 50    {
 251        return SendPhotoAsync(photo, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, cancellat
 52    }
 53
 54    public Task<Message> ReplyPhotoAsync(
 55        InputFileString photo,
 56        string? caption,
 57        TelegramParseMode? parseMode,
 58        CancellationToken cancellationToken = default)
 59    {
 060        return SendPhotoAsync(photo, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancellationTok
 61    }
 62
 63    public Task<Message> ReplyPhotoAsync(
 64        InputFileString photo,
 65        ReplyMarkup replyMarkup,
 66        string? caption = null,
 67        CancellationToken cancellationToken = default)
 68    {
 069        ArgumentNullException.ThrowIfNull(replyMarkup);
 070        return SendPhotoAsync(photo, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancellationTok
 71    }
 72
 73    public Task<Message> ReplyPhotoAsync(
 74        InputFileString photo,
 75        ReplyMarkup replyMarkup,
 76        string? caption,
 77        TelegramParseMode? parseMode,
 78        CancellationToken cancellationToken = default)
 79    {
 080        ArgumentNullException.ThrowIfNull(replyMarkup);
 081        return SendPhotoAsync(photo, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 82    }
 83
 84    public Task<Message> AnswerDocumentAsync(
 85        InputFileString document,
 86        string? caption = null,
 87        CancellationToken cancellationToken = default)
 88    {
 089        return SendDocumentAsync(document, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, ca
 90    }
 91
 92    public Task<Message> AnswerDocumentAsync(
 93        InputFileString document,
 94        string? caption,
 95        TelegramParseMode? parseMode,
 96        CancellationToken cancellationToken = default)
 97    {
 098        return SendDocumentAsync(document, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancella
 99    }
 100
 101    public Task<Message> AnswerDocumentAsync(
 102        InputFileString document,
 103        ReplyMarkup replyMarkup,
 104        string? caption = null,
 105        CancellationToken cancellationToken = default)
 106    {
 0107        ArgumentNullException.ThrowIfNull(replyMarkup);
 0108        return SendDocumentAsync(document, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancella
 109    }
 110
 111    public Task<Message> AnswerDocumentAsync(
 112        InputFileString document,
 113        ReplyMarkup replyMarkup,
 114        string? caption,
 115        TelegramParseMode? parseMode,
 116        CancellationToken cancellationToken = default)
 117    {
 0118        ArgumentNullException.ThrowIfNull(replyMarkup);
 0119        return SendDocumentAsync(document, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellationTo
 120    }
 121
 122    public Task<Message> ReplyDocumentAsync(
 123        InputFileString document,
 124        string? caption = null,
 125        CancellationToken cancellationToken = default)
 126    {
 0127        return SendDocumentAsync(document, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, can
 128    }
 129
 130    public Task<Message> ReplyDocumentAsync(
 131        InputFileString document,
 132        string? caption,
 133        TelegramParseMode? parseMode,
 134        CancellationToken cancellationToken = default)
 135    {
 0136        return SendDocumentAsync(document, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancellat
 137    }
 138
 139    public Task<Message> ReplyDocumentAsync(
 140        InputFileString document,
 141        ReplyMarkup replyMarkup,
 142        string? caption = null,
 143        CancellationToken cancellationToken = default)
 144    {
 0145        ArgumentNullException.ThrowIfNull(replyMarkup);
 0146        return SendDocumentAsync(document, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancellat
 147    }
 148
 149    public Task<Message> ReplyDocumentAsync(
 150        InputFileString document,
 151        ReplyMarkup replyMarkup,
 152        string? caption,
 153        TelegramParseMode? parseMode,
 154        CancellationToken cancellationToken = default)
 155    {
 0156        ArgumentNullException.ThrowIfNull(replyMarkup);
 0157        return SendDocumentAsync(document, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationTok
 158    }
 159
 160    public Task<Message> AnswerVideoAsync(
 161        InputFileString video,
 162        string? caption = null,
 163        CancellationToken cancellationToken = default)
 164    {
 0165        return SendVideoAsync(video, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, cancella
 166    }
 167
 168    public Task<Message> AnswerVideoAsync(
 169        InputFileString video,
 170        string? caption,
 171        TelegramParseMode? parseMode,
 172        CancellationToken cancellationToken = default)
 173    {
 0174        return SendVideoAsync(video, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancellationTo
 175    }
 176
 177    public Task<Message> AnswerVideoAsync(
 178        InputFileString video,
 179        ReplyMarkup replyMarkup,
 180        string? caption = null,
 181        CancellationToken cancellationToken = default)
 182    {
 0183        ArgumentNullException.ThrowIfNull(replyMarkup);
 0184        return SendVideoAsync(video, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancellationTo
 185    }
 186
 187    public Task<Message> AnswerVideoAsync(
 188        InputFileString video,
 189        ReplyMarkup replyMarkup,
 190        string? caption,
 191        TelegramParseMode? parseMode,
 192        CancellationToken cancellationToken = default)
 193    {
 0194        ArgumentNullException.ThrowIfNull(replyMarkup);
 0195        return SendVideoAsync(video, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 196    }
 197
 198    public Task<Message> ReplyVideoAsync(
 199        InputFileString video,
 200        string? caption = null,
 201        CancellationToken cancellationToken = default)
 202    {
 0203        return SendVideoAsync(video, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, cancellat
 204    }
 205
 206    public Task<Message> ReplyVideoAsync(
 207        InputFileString video,
 208        string? caption,
 209        TelegramParseMode? parseMode,
 210        CancellationToken cancellationToken = default)
 211    {
 0212        return SendVideoAsync(video, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancellationTok
 213    }
 214
 215    public Task<Message> ReplyVideoAsync(
 216        InputFileString video,
 217        ReplyMarkup replyMarkup,
 218        string? caption = null,
 219        CancellationToken cancellationToken = default)
 220    {
 0221        ArgumentNullException.ThrowIfNull(replyMarkup);
 0222        return SendVideoAsync(video, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancellationTok
 223    }
 224
 225    public Task<Message> ReplyVideoAsync(
 226        InputFileString video,
 227        ReplyMarkup replyMarkup,
 228        string? caption,
 229        TelegramParseMode? parseMode,
 230        CancellationToken cancellationToken = default)
 231    {
 0232        ArgumentNullException.ThrowIfNull(replyMarkup);
 0233        return SendVideoAsync(video, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 234    }
 235
 236    public Task<Message> AnswerAnimationAsync(
 237        InputFileString animation,
 238        string? caption = null,
 239        CancellationToken cancellationToken = default)
 240    {
 0241        return SendAnimationAsync(animation, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, 
 242    }
 243
 244    public Task<Message> AnswerAnimationAsync(
 245        InputFileString animation,
 246        string? caption,
 247        TelegramParseMode? parseMode,
 248        CancellationToken cancellationToken = default)
 249    {
 0250        return SendAnimationAsync(animation, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancel
 251    }
 252
 253    public Task<Message> AnswerAnimationAsync(
 254        InputFileString animation,
 255        ReplyMarkup replyMarkup,
 256        string? caption = null,
 257        CancellationToken cancellationToken = default)
 258    {
 0259        ArgumentNullException.ThrowIfNull(replyMarkup);
 0260        return SendAnimationAsync(animation, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancel
 261    }
 262
 263    public Task<Message> AnswerAnimationAsync(
 264        InputFileString animation,
 265        ReplyMarkup replyMarkup,
 266        string? caption,
 267        TelegramParseMode? parseMode,
 268        CancellationToken cancellationToken = default)
 269    {
 0270        ArgumentNullException.ThrowIfNull(replyMarkup);
 0271        return SendAnimationAsync(animation, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellation
 272    }
 273
 274    public Task<Message> ReplyAnimationAsync(
 275        InputFileString animation,
 276        string? caption = null,
 277        CancellationToken cancellationToken = default)
 278    {
 0279        return SendAnimationAsync(animation, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, c
 280    }
 281
 282    public Task<Message> ReplyAnimationAsync(
 283        InputFileString animation,
 284        string? caption,
 285        TelegramParseMode? parseMode,
 286        CancellationToken cancellationToken = default)
 287    {
 0288        return SendAnimationAsync(animation, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancell
 289    }
 290
 291    public Task<Message> ReplyAnimationAsync(
 292        InputFileString animation,
 293        ReplyMarkup replyMarkup,
 294        string? caption = null,
 295        CancellationToken cancellationToken = default)
 296    {
 0297        ArgumentNullException.ThrowIfNull(replyMarkup);
 0298        return SendAnimationAsync(animation, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancell
 299    }
 300
 301    public Task<Message> ReplyAnimationAsync(
 302        InputFileString animation,
 303        ReplyMarkup replyMarkup,
 304        string? caption,
 305        TelegramParseMode? parseMode,
 306        CancellationToken cancellationToken = default)
 307    {
 0308        ArgumentNullException.ThrowIfNull(replyMarkup);
 0309        return SendAnimationAsync(animation, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationT
 310    }
 311
 312    public Task<Message> AnswerAudioAsync(
 313        InputFileString audio,
 314        string? caption = null,
 315        CancellationToken cancellationToken = default)
 316    {
 0317        return SendAudioAsync(audio, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, cancella
 318    }
 319
 320    public Task<Message> AnswerAudioAsync(
 321        InputFileString audio,
 322        string? caption,
 323        TelegramParseMode? parseMode,
 324        CancellationToken cancellationToken = default)
 325    {
 0326        return SendAudioAsync(audio, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancellationTo
 327    }
 328
 329    public Task<Message> AnswerAudioAsync(
 330        InputFileString audio,
 331        ReplyMarkup replyMarkup,
 332        string? caption = null,
 333        CancellationToken cancellationToken = default)
 334    {
 0335        ArgumentNullException.ThrowIfNull(replyMarkup);
 0336        return SendAudioAsync(audio, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancellationTo
 337    }
 338
 339    public Task<Message> AnswerAudioAsync(
 340        InputFileString audio,
 341        ReplyMarkup replyMarkup,
 342        string? caption,
 343        TelegramParseMode? parseMode,
 344        CancellationToken cancellationToken = default)
 345    {
 0346        ArgumentNullException.ThrowIfNull(replyMarkup);
 0347        return SendAudioAsync(audio, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 348    }
 349
 350    public Task<Message> ReplyAudioAsync(
 351        InputFileString audio,
 352        string? caption = null,
 353        CancellationToken cancellationToken = default)
 354    {
 0355        return SendAudioAsync(audio, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, cancellat
 356    }
 357
 358    public Task<Message> ReplyAudioAsync(
 359        InputFileString audio,
 360        string? caption,
 361        TelegramParseMode? parseMode,
 362        CancellationToken cancellationToken = default)
 363    {
 0364        return SendAudioAsync(audio, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancellationTok
 365    }
 366
 367    public Task<Message> ReplyAudioAsync(
 368        InputFileString audio,
 369        ReplyMarkup replyMarkup,
 370        string? caption = null,
 371        CancellationToken cancellationToken = default)
 372    {
 0373        ArgumentNullException.ThrowIfNull(replyMarkup);
 0374        return SendAudioAsync(audio, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancellationTok
 375    }
 376
 377    public Task<Message> ReplyAudioAsync(
 378        InputFileString audio,
 379        ReplyMarkup replyMarkup,
 380        string? caption,
 381        TelegramParseMode? parseMode,
 382        CancellationToken cancellationToken = default)
 383    {
 0384        ArgumentNullException.ThrowIfNull(replyMarkup);
 0385        return SendAudioAsync(audio, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 386    }
 387
 388    public Task<Message> AnswerVoiceAsync(
 389        InputFileString voice,
 390        string? caption = null,
 391        CancellationToken cancellationToken = default)
 392    {
 0393        return SendVoiceAsync(voice, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: false, cancella
 394    }
 395
 396    public Task<Message> AnswerVoiceAsync(
 397        InputFileString voice,
 398        string? caption,
 399        TelegramParseMode? parseMode,
 400        CancellationToken cancellationToken = default)
 401    {
 0402        return SendVoiceAsync(voice, caption, parseMode, replyMarkup: null, replyToCurrentMessage: false, cancellationTo
 403    }
 404
 405    public Task<Message> AnswerVoiceAsync(
 406        InputFileString voice,
 407        ReplyMarkup replyMarkup,
 408        string? caption = null,
 409        CancellationToken cancellationToken = default)
 410    {
 0411        ArgumentNullException.ThrowIfNull(replyMarkup);
 0412        return SendVoiceAsync(voice, caption, parseMode: null, replyMarkup, replyToCurrentMessage: false, cancellationTo
 413    }
 414
 415    public Task<Message> AnswerVoiceAsync(
 416        InputFileString voice,
 417        ReplyMarkup replyMarkup,
 418        string? caption,
 419        TelegramParseMode? parseMode,
 420        CancellationToken cancellationToken = default)
 421    {
 0422        ArgumentNullException.ThrowIfNull(replyMarkup);
 0423        return SendVoiceAsync(voice, caption, parseMode, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 424    }
 425
 426    public Task<Message> ReplyVoiceAsync(
 427        InputFileString voice,
 428        string? caption = null,
 429        CancellationToken cancellationToken = default)
 430    {
 0431        return SendVoiceAsync(voice, caption, parseMode: null, replyMarkup: null, replyToCurrentMessage: true, cancellat
 432    }
 433
 434    public Task<Message> ReplyVoiceAsync(
 435        InputFileString voice,
 436        string? caption,
 437        TelegramParseMode? parseMode,
 438        CancellationToken cancellationToken = default)
 439    {
 0440        return SendVoiceAsync(voice, caption, parseMode, replyMarkup: null, replyToCurrentMessage: true, cancellationTok
 441    }
 442
 443    public Task<Message> ReplyVoiceAsync(
 444        InputFileString voice,
 445        ReplyMarkup replyMarkup,
 446        string? caption = null,
 447        CancellationToken cancellationToken = default)
 448    {
 0449        ArgumentNullException.ThrowIfNull(replyMarkup);
 0450        return SendVoiceAsync(voice, caption, parseMode: null, replyMarkup, replyToCurrentMessage: true, cancellationTok
 451    }
 452
 453    public Task<Message> ReplyVoiceAsync(
 454        InputFileString voice,
 455        ReplyMarkup replyMarkup,
 456        string? caption,
 457        TelegramParseMode? parseMode,
 458        CancellationToken cancellationToken = default)
 459    {
 0460        ArgumentNullException.ThrowIfNull(replyMarkup);
 0461        return SendVoiceAsync(voice, caption, parseMode, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 462    }
 463
 464    public Task<Message> AnswerStickerAsync(
 465        InputFileString sticker,
 466        CancellationToken cancellationToken = default)
 467    {
 0468        return SendStickerAsync(sticker, replyMarkup: null, replyToCurrentMessage: false, cancellationToken);
 469    }
 470
 471    public Task<Message> AnswerStickerAsync(
 472        InputFileString sticker,
 473        ReplyMarkup replyMarkup,
 474        CancellationToken cancellationToken = default)
 475    {
 0476        ArgumentNullException.ThrowIfNull(replyMarkup);
 0477        return SendStickerAsync(sticker, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 478    }
 479
 480    public Task<Message> ReplyStickerAsync(
 481        InputFileString sticker,
 482        CancellationToken cancellationToken = default)
 483    {
 1484        return SendStickerAsync(sticker, replyMarkup: null, replyToCurrentMessage: true, cancellationToken);
 485    }
 486
 487    public Task<Message> ReplyStickerAsync(
 488        InputFileString sticker,
 489        ReplyMarkup replyMarkup,
 490        CancellationToken cancellationToken = default)
 491    {
 0492        ArgumentNullException.ThrowIfNull(replyMarkup);
 0493        return SendStickerAsync(sticker, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 494    }
 495
 496    public Task<Message> AnswerVideoNoteAsync(
 497        InputFileString videoNote,
 498        CancellationToken cancellationToken = default)
 499    {
 0500        return SendVideoNoteAsync(videoNote, replyMarkup: null, replyToCurrentMessage: false, cancellationToken);
 501    }
 502
 503    public Task<Message> AnswerVideoNoteAsync(
 504        InputFileString videoNote,
 505        ReplyMarkup replyMarkup,
 506        CancellationToken cancellationToken = default)
 507    {
 0508        ArgumentNullException.ThrowIfNull(replyMarkup);
 0509        return SendVideoNoteAsync(videoNote, replyMarkup, replyToCurrentMessage: false, cancellationToken);
 510    }
 511
 512    public Task<Message> ReplyVideoNoteAsync(
 513        InputFileString videoNote,
 514        CancellationToken cancellationToken = default)
 515    {
 0516        return SendVideoNoteAsync(videoNote, replyMarkup: null, replyToCurrentMessage: true, cancellationToken);
 517    }
 518
 519    public Task<Message> ReplyVideoNoteAsync(
 520        InputFileString videoNote,
 521        ReplyMarkup replyMarkup,
 522        CancellationToken cancellationToken = default)
 523    {
 0524        ArgumentNullException.ThrowIfNull(replyMarkup);
 0525        return SendVideoNoteAsync(videoNote, replyMarkup, replyToCurrentMessage: true, cancellationToken);
 526    }
 527
 528    private Task<Message> SendPhotoAsync(
 529        InputFileString photo,
 530        string? caption,
 531        TelegramParseMode? parseMode,
 532        ReplyMarkup? replyMarkup,
 533        bool replyToCurrentMessage,
 534        CancellationToken cancellationToken)
 535    {
 7536        ArgumentNullException.ThrowIfNull(photo);
 7537        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 7538        return _context.Bot.SendPhotoAsync(
 7539            CurrentChatId,
 7540            photo,
 7541            caption: caption,
 7542            parseMode: parseMode,
 7543            receiverUserId: reply.ReceiverUserId,
 7544            replyParameters: reply.ReplyParameters,
 7545            replyMarkup: replyMarkup,
 7546            cancellationToken: ResolveCancellationToken(cancellationToken));
 547    }
 548
 549    private Task<Message> SendDocumentAsync(
 550        InputFileString document,
 551        string? caption,
 552        TelegramParseMode? parseMode,
 553        ReplyMarkup? replyMarkup,
 554        bool replyToCurrentMessage,
 555        CancellationToken cancellationToken)
 556    {
 0557        ArgumentNullException.ThrowIfNull(document);
 0558        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0559        return _context.Bot.SendDocumentAsync(
 0560            CurrentChatId,
 0561            document,
 0562            caption: caption,
 0563            parseMode: parseMode,
 0564            receiverUserId: reply.ReceiverUserId,
 0565            replyParameters: reply.ReplyParameters,
 0566            replyMarkup: replyMarkup,
 0567            cancellationToken: ResolveCancellationToken(cancellationToken));
 568    }
 569
 570    private Task<Message> SendVideoAsync(
 571        InputFileString video,
 572        string? caption,
 573        TelegramParseMode? parseMode,
 574        ReplyMarkup? replyMarkup,
 575        bool replyToCurrentMessage,
 576        CancellationToken cancellationToken)
 577    {
 0578        ArgumentNullException.ThrowIfNull(video);
 0579        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0580        return _context.Bot.SendVideoAsync(
 0581            CurrentChatId,
 0582            video,
 0583            caption: caption,
 0584            parseMode: parseMode,
 0585            receiverUserId: reply.ReceiverUserId,
 0586            replyParameters: reply.ReplyParameters,
 0587            replyMarkup: replyMarkup,
 0588            cancellationToken: ResolveCancellationToken(cancellationToken));
 589    }
 590
 591    private Task<Message> SendAnimationAsync(
 592        InputFileString animation,
 593        string? caption,
 594        TelegramParseMode? parseMode,
 595        ReplyMarkup? replyMarkup,
 596        bool replyToCurrentMessage,
 597        CancellationToken cancellationToken)
 598    {
 0599        ArgumentNullException.ThrowIfNull(animation);
 0600        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0601        return _context.Bot.SendAnimationAsync(
 0602            CurrentChatId,
 0603            animation,
 0604            caption: caption,
 0605            parseMode: parseMode,
 0606            receiverUserId: reply.ReceiverUserId,
 0607            replyParameters: reply.ReplyParameters,
 0608            replyMarkup: replyMarkup,
 0609            cancellationToken: ResolveCancellationToken(cancellationToken));
 610    }
 611
 612    private Task<Message> SendAudioAsync(
 613        InputFileString audio,
 614        string? caption,
 615        TelegramParseMode? parseMode,
 616        ReplyMarkup? replyMarkup,
 617        bool replyToCurrentMessage,
 618        CancellationToken cancellationToken)
 619    {
 0620        ArgumentNullException.ThrowIfNull(audio);
 0621        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0622        return _context.Bot.SendAudioAsync(
 0623            CurrentChatId,
 0624            audio,
 0625            caption: caption,
 0626            parseMode: parseMode,
 0627            receiverUserId: reply.ReceiverUserId,
 0628            replyParameters: reply.ReplyParameters,
 0629            replyMarkup: replyMarkup,
 0630            cancellationToken: ResolveCancellationToken(cancellationToken));
 631    }
 632
 633    private Task<Message> SendVoiceAsync(
 634        InputFileString voice,
 635        string? caption,
 636        TelegramParseMode? parseMode,
 637        ReplyMarkup? replyMarkup,
 638        bool replyToCurrentMessage,
 639        CancellationToken cancellationToken)
 640    {
 0641        ArgumentNullException.ThrowIfNull(voice);
 0642        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0643        return _context.Bot.SendVoiceAsync(
 0644            CurrentChatId,
 0645            voice,
 0646            caption: caption,
 0647            parseMode: parseMode,
 0648            receiverUserId: reply.ReceiverUserId,
 0649            replyParameters: reply.ReplyParameters,
 0650            replyMarkup: replyMarkup,
 0651            cancellationToken: ResolveCancellationToken(cancellationToken));
 652    }
 653
 654    private Task<Message> SendStickerAsync(
 655        InputFileString sticker,
 656        ReplyMarkup? replyMarkup,
 657        bool replyToCurrentMessage,
 658        CancellationToken cancellationToken)
 659    {
 1660        ArgumentNullException.ThrowIfNull(sticker);
 1661        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 1662        return _context.Bot.SendStickerAsync(
 1663            CurrentChatId,
 1664            sticker,
 1665            receiverUserId: reply.ReceiverUserId,
 1666            replyParameters: reply.ReplyParameters,
 1667            replyMarkup: replyMarkup,
 1668            cancellationToken: ResolveCancellationToken(cancellationToken));
 669    }
 670
 671    private Task<Message> SendVideoNoteAsync(
 672        InputFileString videoNote,
 673        ReplyMarkup? replyMarkup,
 674        bool replyToCurrentMessage,
 675        CancellationToken cancellationToken)
 676    {
 0677        ArgumentNullException.ThrowIfNull(videoNote);
 0678        var reply = CreateReplyConfiguration(replyToCurrentMessage);
 0679        return _context.Bot.SendVideoNoteAsync(
 0680            CurrentChatId,
 0681            videoNote,
 0682            receiverUserId: reply.ReceiverUserId,
 0683            replyParameters: reply.ReplyParameters,
 0684            replyMarkup: replyMarkup,
 0685            cancellationToken: ResolveCancellationToken(cancellationToken));
 686    }
 687
 8688    private IntegerString CurrentChatId => IntegerString.From(_context.TelegramChat.Id);
 689
 690}

Methods/Properties

.ctor(TeleFlow.Telegram.MessageContext)
AnswerAsync(System.String,System.Threading.CancellationToken)
AnswerAsync(TeleFlow.Telegram.Formatting.TelegramFormattedText,System.Threading.CancellationToken)
AnswerAsync(System.String,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
AnswerAsync(TeleFlow.Telegram.Formatting.TelegramFormattedText,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
AnswerAsync(System.String,TeleFlow.Telegram.ReplyKeyboard,System.Threading.CancellationToken)
AnswerAsync(System.String,TeleFlow.Telegram.KeyboardRemove,System.Threading.CancellationToken)
AnswerAsync(System.String,TeleFlow.Telegram.ForceReplyBuilder,System.Threading.CancellationToken)
AnswerAsync(System.String,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
ReplyAsync(System.String,System.Threading.CancellationToken)
ReplyAsync(TeleFlow.Telegram.Formatting.TelegramFormattedText,System.Threading.CancellationToken)
ReplyAsync(System.String,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
ReplyAsync(TeleFlow.Telegram.Formatting.TelegramFormattedText,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
ReplyAsync(System.String,TeleFlow.Telegram.ReplyKeyboard,System.Threading.CancellationToken)
ReplyAsync(System.String,TeleFlow.Telegram.KeyboardRemove,System.Threading.CancellationToken)
ReplyAsync(System.String,TeleFlow.Telegram.ForceReplyBuilder,System.Threading.CancellationToken)
ReplyAsync(System.String,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
SendEphemeralAsync(System.String,System.Threading.CancellationToken)
SendEphemeralAsync(System.String,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
ReplyTextAsync(System.String,System.Threading.CancellationToken)
ReplyTextAsync(System.String,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
ReplyTextAsync(System.String,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
SendTextAsync(System.String,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>)
SendFormattedTextAsync(TeleFlow.Telegram.Formatting.TelegramFormattedText,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
DeleteAsync(System.Threading.CancellationToken)
SendEphemeralCoreAsync(System.String,TeleFlow.Telegram.Schema.Types.InlineKeyboardMarkup,System.Threading.CancellationToken)
CreateReplyConfiguration(System.Boolean)
ResolveCancellationToken(System.Threading.CancellationToken)
AnswerPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
AnswerVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
AnswerVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Threading.CancellationToken)
ReplyVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
ReplyVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Threading.CancellationToken)
ReplyVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,System.Threading.CancellationToken)
AnswerStickerAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.Threading.CancellationToken)
AnswerStickerAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
ReplyStickerAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.Threading.CancellationToken)
ReplyStickerAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
AnswerVideoNoteAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.Threading.CancellationToken)
AnswerVideoNoteAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
ReplyVideoNoteAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.Threading.CancellationToken)
ReplyVideoNoteAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Threading.CancellationToken)
SendPhotoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendDocumentAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendVideoAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendAnimationAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendAudioAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendVoiceAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,System.String,System.Nullable`1<TeleFlow.Telegram.TelegramParseMode>,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendStickerAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
SendVideoNoteAsync(TeleFlow.Telegram.Schema.Abstractions.InputFileString,TeleFlow.Telegram.Schema.Abstractions.ReplyMarkup,System.Boolean,System.Threading.CancellationToken)
get_CurrentChatId()