Skip to content

Commit 96ab760

Browse files
committed
Changed ordering for ChatType::username according for api documentation.
Added release note Fixed phpdoc for ChatType::title Fixed constant visibility in ChatType class
1 parent 99dfb77 commit 96ab760

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2121
### Security
2222
- Nothing
2323

24+
## 1.1.4 - 2020-01-19
25+
26+
### Fixed
27+
- Fixed broken field ChatType::username thanks for [Jan Dittrich](https://github.com/jan-di)
28+
- Fixed constant visibility in ChatType class
29+
30+
## 1.1.1, 1.1.2, 1.1.3 - 2020-01-19
31+
32+
### Added
33+
- Support symfony 3.4
34+
35+
### Fixed
36+
- minor bug fixes
37+
2438
## 1.1.0 - 2019-08-05
2539
implemented support of [July update](https://core.telegram.org/bots/api#july-29-2019) of api
2640

src/Type/ChatType.php

+11-12
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*/
1212
class ChatType
1313
{
14-
const TYPE_PRIVATE = 'private';
15-
const TYPE_GROUP = 'group';
16-
const TYPE_SUPERGROUP = 'supergroup';
17-
const TYPE_CHANNEL = 'channel';
14+
public const TYPE_PRIVATE = 'private';
15+
public const TYPE_GROUP = 'group';
16+
public const TYPE_SUPERGROUP = 'supergroup';
17+
public const TYPE_CHANNEL = 'channel';
1818

1919
/**
2020
* Unique identifier for this chat. This number may be greater than 32 bits and some programming languages
@@ -33,33 +33,32 @@ class ChatType
3333
public $type;
3434

3535
/**
36-
* Optional. Title, for supergroups, channels and group chats username String Optional Username,
37-
* for private chats, supergroups and channels if available.
36+
* Optional. Title, for supergroups, channels and group chats username.
3837
*
3938
* @var string|null
4039
*/
4140
public $title;
4241

4342
/**
44-
* Optional. First name of the other party in a private chat.
43+
* Optional. Username of the other party in a private chat.
4544
*
4645
* @var string|null
4746
*/
48-
public $firstName;
47+
public $username;
4948

5049
/**
51-
* Optional. Last name of the other party in a private chat.
50+
* Optional. First name of the other party in a private chat.
5251
*
5352
* @var string|null
5453
*/
55-
public $lastName;
54+
public $firstName;
5655

5756
/**
58-
* Optional. Username of the other party in a private chat.
57+
* Optional. Last name of the other party in a private chat.
5958
*
6059
* @var string|null
6160
*/
62-
public $username;
61+
public $lastName;
6362

6463
/**
6564
* Optional. True if a group has ‘All Members Are Admins’ enabled.

0 commit comments

Comments
 (0)