This commit is contained in:
Rogee
2024-08-30 12:38:03 +08:00
parent 1fde6ee1ff
commit e43fa0f078
26 changed files with 647 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
package internal
import (
"context"
"github.com/gotd/td/tg"
"github.com/pkg/errors"
)
func (t *TClient) PrintChannels(ctx context.Context) error {
channels, err := t.Client.API().ChannelsGetChannels(context.Background(), []tg.InputChannelClass{
&tg.InputChannelEmpty{},
})
if err != nil {
return errors.Wrap(err, "failed to get channels")
}
_ = channels
return nil
}