예제 #1
0
 public PostponedTelegramMessage(TelegramMessage message, DateTime time)
 {
     Message    = message;
     Time       = time;
     Validation = true;
     IsSend     = false;
 }
예제 #2
0
파일: MainWindow.cs 프로젝트: foegit/tPost
        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();
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Set(TelegramMessage message, DateTime time)
 {
     Message = message;
     Time    = time;
 }
예제 #5
0
 public void Set(TelegramMessage message)
 {
     Message = message;
 }