Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
badoualy committed Jan 23, 2016
1 parent de9c442 commit 7a5ef28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repositories {

Then add the library dependency:
```gradle
compile 'com.github.badoualy:kotlogram:0.0.3'
compile 'com.github.badoualy:kotlogram:0.0.4'
```


Expand All @@ -50,11 +50,11 @@ try {
System.out.println("Authentication code: ");
String code = new Scanner(System.in).nextLine();
TLAuthorization authorization = client.authSignIn(PHONE_NUMBER, sentCode.getPhoneCodeHash(), code);
TLUserSelf self = (TLUserSelf) authorization.getUser();
TLUser self = (TLUser) authorization.getUser();
System.out.println("You are now signed in as " + self.getFirstName() + " " + self.getLastName());

// Start making cool stuff!
TLAbsDialogs dialogs = client.messagesGetDialogs(0, 0, 0);
TLAbsDialogs dialogs = client.messagesGetDialogs(0, 0, new TLInputPeerEmpty(), 0);
// Do something with recent chats :)
} catch (RpcErrorException e) {
// Error with the request, invalid argument, etc
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
allprojects {
version = "0.0.3-beta"
version = "0.0.4-beta"

repositories {
jcenter()
Expand Down

0 comments on commit 7a5ef28

Please sign in to comment.