Exemple #1
0
        public DialogModelPlain(Peer peer, TelegramSession session)
            : base(session)
        {
            this.dialog = (DialogConstructor)TL.dialog(peer, 0, 1);

            SubscribeToDialog();
        }
Exemple #2
0
        public DialogModelPlain(MessageModelDelivered topMessage, TelegramSession session) : base(session)
        {
            this.dialog = (DialogConstructor)TL.dialog(topMessage.Peer, topMessage.Id, 1);
            this.messages.Add(topMessage);

            SubscribeToDialog();
        }