public PostponedTelegramMessage(TelegramMessage message, DateTime time) { Message = message; Time = time; Validation = true; IsSend = false; }
public MainWindow() { _isPostponed = false; _postponedMaster = new PostponedMaster(); _publicationTime = new DateTime(); InitializeComponent(); _message = new TelegramMessage(); ParseModeChange += ParseModeChangeHandler; if (!((SimpleText)_message.Content).DisablePagePrewiew) { LinkPreviewButton.Image = Image.FromFile(@"...\...\img\linkpreview.png"); } else { LinkPreviewButton.Image = Image.FromFile(@"...\...\img\noview.png"); } _message.UbPanels.ListChange += UBListChangeHandler; SyncSettings(); SyncTimePickerValues(); }
public object Clone() { var cloneMessage = new TelegramMessage(); cloneMessage.Text = Text; cloneMessage.Bot = Bot; cloneMessage.CanalName = CanalName; cloneMessage.DisableNotification = DisableNotification; cloneMessage.Content = (IMessageContent.IMessageContent)Content.Clone(); cloneMessage.InlineMarkup = ConstructUrlButtonMarkup(); return(cloneMessage); }
public void Set(TelegramMessage message, DateTime time) { Message = message; Time = time; }
public void Set(TelegramMessage message) { Message = message; }