tests

package
v0.0.2-301223-bfaf9a7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatFromID

func ChatFromID(_ context.Context, id int64) *control.Chat

func ContextChat

func ContextChat(ctx context.Context) *control.Chat

func ContextUser

func ContextUser(ctx context.Context) *control.User

func GenerateID

func GenerateID() (int64, error)

func UserFromID

func UserFromID(ctx context.Context, id int64) *control.User

func WaitForMessagesSince

func WaitForMessagesSince(ctx context.Context, t require.TestingT,
	tm control.TGMockControlClient, c *control.Chat, n int, timeout time.Duration, sinceID int64) []*control.Message

func WithChatID

func WithChatID(ctx context.Context, id int64) context.Context

func WithUserID

func WithUserID(ctx context.Context, id int64) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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