Skip to content

Commit afe39d7

Browse files
committed
Fix Chat.php bug
1 parent 184504b commit afe39d7

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,15 @@ Which should give you no output, indicating that there are no coding standard er
1111

1212
phpunit
1313

14-
Which should give you no failures or errors. You can ignore any skipped tests as these are for external tools.
14+
Which should give you no failures or errors. You can ignore any skipped tests as these are for external tools.
15+
16+
Pushing
17+
-------
18+
19+
Development is based on the git flow branching model (see http://nvie.com/posts/a-successful-git-branching-model/ )
20+
If you fix a bug please push in hotfix branch.
21+
If you develop a new feature please create a new branch.
22+
23+
Version
24+
-------
25+
Version number: 0.#version.#hotfix

src/Entities/Chat.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ public function isGroupChat()
4545

4646
public function isSingleChat()
4747
{
48-
return ! $this->isGroupChat();
48+
if ($this->id > 0) {
49+
return true;
50+
} else {
51+
return false;
52+
}
4953
}
5054
public function getId()
5155
{

src/Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Telegram
3030
*
3131
* @var string
3232
*/
33-
protected $version = '0.0.16';
33+
protected $version = '0.16.0';
3434

3535
/**
3636
* Telegram API key

0 commit comments

Comments
 (0)