tdl/pkg/tmessage/tmessage.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()
}