Skip to content

v0.18.0: Run() instead Connect()

Choose a tag to compare

@ernado ernado released this 05 Jan 15:55
e12ba5d

BREAKING: Now Connect method is removed, use following:

client := telegram.NewClient(1, "appHash", telegram.Options{})
client.Run(ctx, func(ctx context.Context) error {
	// Client is ready, function return closes client.
	return nil
})