public PhotoMessage(InputOnlineFile photo, string?caption = null, ParseMode?parseMode = null, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, ChatId?chatId = null) { Photo = photo; Caption = caption; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(caption); DisableNotification = disableNotification; ReplyToMessageId = replyToMessageId; ReplyMarkup = replyMarkup; ChatId = chatId; }
public TextMessage(string text, ParseMode?parseMode = null, bool disableWebPagePreview = false, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, ChatId?chatId = null) { Text = text; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(text); DisableWebPagePreview = disableWebPagePreview; DisableNotification = disableNotification; ReplyToMessageId = replyToMessageId; ReplyMarkup = replyMarkup; ChatId = chatId; }
public DocumentMessage(InputOnlineFile document, string?caption = null, ParseMode?parseMode = null, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, InputMedia?thumb = null, ChatId?chatId = null) { Document = document; Caption = caption; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(caption); ReplyToMessageId = replyToMessageId; DisableNotification = disableNotification; ReplyMarkup = replyMarkup; Thumb = thumb; ChatId = chatId; }
public VoiceMessage(InputOnlineFile voice, int duration = 0, string?caption = null, ParseMode?parseMode = null, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, ChatId?chatId = null) { Voice = voice; Duration = duration; Caption = caption; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(caption); ReplyToMessageId = replyToMessageId; DisableNotification = disableNotification; ReplyMarkup = replyMarkup; ChatId = chatId; }
public AudioMessage(InputOnlineFile audio, string?caption = null, ParseMode?parseMode = null, int duration = 0, string?performer = null, string?title = null, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, InputMedia?thumb = null, ChatId?chatId = null) { Audio = audio; Caption = caption; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(caption); Duration = duration; Performer = performer; Title = title; DisableNotification = disableNotification; ReplyToMessageId = replyToMessageId; ReplyMarkup = replyMarkup; Thumb = thumb; ChatId = chatId; }
public AnimationMessage(InputOnlineFile animation, int duration = 0, int width = 0, int height = 0, InputMedia?thumb = null, string?caption = null, ParseMode?parseMode = null, bool disableNotification = false, int replyToMessageId = 0, IReplyMarkup?replyMarkup = null, ChatId?chatId = null) { Animation = animation; Duration = duration; Width = width; Height = height; Thumb = thumb; Caption = caption; ParseMode = parseMode ?? ParseModeExtensions.RecognizeSuitableParseMode(caption); ReplyToMessageId = replyToMessageId; DisableNotification = disableNotification; ReplyMarkup = replyMarkup; ChatId = chatId; }