diff --git a/README.md b/README.md index c40e275..22982a9 100644 --- a/README.md +++ b/README.md @@ -32,16 +32,13 @@ import ( ) func main() { - clientType := gotgproto.ClientType{ - Phone: "PHONE_NUMBER_HERE", - } client, err := gotgproto.NewClient( // Get AppID from https://my.telegram.org/apps 123456, // Get ApiHash from https://my.telegram.org/apps "API_HASH_HERE", // ClientType, as we defined above - clientType, + gotgproto.ClientTypePhone("PHONE_NUMBER_HERE"), // Optional parameters of client &gotgproto.ClientOpts{ Session: sessionMaker.SqlSession(sqlite.Open("echobot")), diff --git a/client.go b/client.go index 9b077bf..dd08142 100644 --- a/client.go +++ b/client.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" ) -const VERSION = "v1.0.0-beta17" +const VERSION = "v1.0.0-beta18" type Client struct { // Dispatcher handlers the incoming updates and execute mapped handlers. It is recommended to use dispatcher.MakeDispatcher function for this field.