type github.com/gotd/td/constant.TDLibPeerID
12 uses
github.com/gotd/td/constant (current package)
tdlib_ids.go#L17: type TDLibPeerID int64
tdlib_ids.go#L20: func (id *TDLibPeerID) User(p int64) {
tdlib_ids.go#L21: *id = TDLibPeerID(p)
tdlib_ids.go#L25: func (id *TDLibPeerID) Chat(p int64) {
tdlib_ids.go#L26: *id = TDLibPeerID(-p)
tdlib_ids.go#L30: func (id *TDLibPeerID) Channel(p int64) {
tdlib_ids.go#L31: *id = TDLibPeerID(ZeroTDLibChannelID + (p * -1))
tdlib_ids.go#L35: func (id TDLibPeerID) ToPlain() (r int64) {
tdlib_ids.go#L49: func (id TDLibPeerID) IsUser() bool {
tdlib_ids.go#L54: func (id TDLibPeerID) IsChat() bool {
tdlib_ids.go#L59: func (id TDLibPeerID) IsChannel() bool {
tdlib_ids.go#L63: ZeroTDLibChannelID-TDLibPeerID(MaxTDLibChannelID) <= id
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |