From ddd427d96d8a5f878577c5aa32c3630acf658c82 Mon Sep 17 00:00:00 2001 From: Anony <73958752+celestix@users.noreply.github.com> Date: Wed, 1 May 2024 02:57:07 +0530 Subject: [PATCH] update readme example to support client type interface --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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")),