public void Group(TLDialogBase dialogBase) { var dialog = dialogBase as TLDialog; if (dialog == null) { return; } var channel = dialog.With as TLChannel76; if (channel == null) { return; } var feedId = channel.FeedId != null ? null : new TLInt(1); IsWorking = true; MTProtoService.ChangeFeedBroadcastAsync(channel.ToInputChannel(), feedId, result => Execute.BeginOnUIThread(() => { IsWorking = false; //Handle(new TLUpdateDialogPinned76 { Peer = dialog53.Peer, Pinned = pinned }); channel.FeedId = feedId; Execute.ShowDebugMessage(result.ToString()); }), error => Execute.BeginOnUIThread(() => { IsWorking = false; })); }