Skip to content

Commit

Permalink
update readme example to support client type interface
Browse files Browse the repository at this point in the history
  • Loading branch information
celestix authored Apr 30, 2024
1 parent 30c49e2 commit ddd427d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit ddd427d

Please sign in to comment.