feat: sync chatlist sharing support
This commit is contained in:
parent
ec6e8fd13d
commit
2a9c12263f
62 changed files with 3408 additions and 212 deletions
|
|
@ -419,6 +419,11 @@ func (r *Router) domainFolderPeerFromInputPeer(ctx context.Context, userID int64
|
|||
return domain.Peer{}, 0, peerIDInvalidErr()
|
||||
}
|
||||
return out, 0, nil
|
||||
case *tg.InputPeerChat:
|
||||
if p.ChatID <= 0 {
|
||||
return domain.Peer{}, 0, peerIDInvalidErr()
|
||||
}
|
||||
return domain.Peer{Type: domain.PeerTypeChannel, ID: p.ChatID}, 0, nil
|
||||
case *tg.InputPeerSelf:
|
||||
if userID == 0 {
|
||||
return domain.Peer{}, 0, peerIDInvalidErr()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue