userclient

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteHandler

func DeleteHandler(ctx *ext.Context, u *ext.Update) error

func WatchHandler

func WatchHandler(ctx *ext.Context, u *ext.Update) error

Types

type UserClient

type UserClient struct {
	TClient *gotgproto.Client

	GlobalIgnoreUsers []int64
	// contains filtered or unexported fields
}
var UC *UserClient

func NewUserClient

func NewUserClient(ctx context.Context) (*UserClient, error)

func (*UserClient) AddGlobalIgnoreUser

func (u *UserClient) AddGlobalIgnoreUser(userID int64)

func (*UserClient) Close

func (u *UserClient) Close() error

func (*UserClient) ForwardMessagesToFav added in v0.4.0

func (u *UserClient) ForwardMessagesToFav(ctx context.Context, fromID int64, messageIDs []int) error

func (*UserClient) RemoveGlobalIgnoreUser

func (u *UserClient) RemoveGlobalIgnoreUser(userID int64)

func (*UserClient) StartWatch

func (u *UserClient) StartWatch(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL