Skip to content

Commit

Permalink
Merge branch 'beta' of https://github.com/celestix/gotgproto into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
celestix committed May 11, 2024
2 parents a47309b + a957bbc commit 4b606be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4b606be

Please sign in to comment.