mirror of
https://github.com/iyear/tdl
synced 2025-01-08 11:57:55 +08:00
17 lines
232 B
Go
17 lines
232 B
Go
package tmessage
|
|
|
|
import (
|
|
"github.com/gotd/td/tg"
|
|
)
|
|
|
|
type Dialog struct {
|
|
Peer tg.InputPeerClass
|
|
Messages []int
|
|
}
|
|
|
|
type ParseSource func() ([]*Dialog, error)
|
|
|
|
func Parse(src ParseSource) ([]*Dialog, error) {
|
|
return src()
|
|
}
|