File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function execute()
70
70
true , //Select supergroups (super group chat)
71
71
true , //Select users (single chat)
72
72
null , //'yyyy-mm-dd hh:mm:ss' date range from
73
- null , //'yyyy-mm-dd hh:mm:ss' date range to
73
+ null , //'yyyy-mm-dd hh:mm:ss' date range to
74
74
$ user_id //Specific chat_id to select
75
75
);
76
76
Original file line number Diff line number Diff line change @@ -190,16 +190,13 @@ protected function init(array & $data, & $bot_name)
190
190
$ this ->type = 'Venue ' ;
191
191
}
192
192
193
- $ this ->new_chat_member = isset ($ data ['new_chat_participant ' ]) ? $ data ['new_chat_participant ' ] : null ;
194
- if (!empty ($ this ->new_chat_member )) {
195
- $ this ->new_chat_member = new User ($ this ->new_chat_member );
196
- $ this ->type = 'new_chat_member ' ;
193
+ //retrocompatibility
194
+ if (isset ($ data ['new_chat_participant ' ])) {
195
+ $ data ['new_chat_member ' ] = $ data ['new_chat_participant ' ];
197
196
}
198
197
199
- $ this ->left_chat_member = isset ($ data ['left_chat_participant ' ]) ? $ data ['left_chat_participant ' ] : null ;
200
- if (!empty ($ this ->left_chat_member )) {
201
- $ this ->left_chat_member = new User ($ this ->left_chat_member );
202
- $ this ->type = 'left_chat_member ' ;
198
+ if (isset ($ data ['left_chat_participant ' ])) {
199
+ $ data ['left_chat_member ' ] = $ data ['left_chat_participant ' ];
203
200
}
204
201
205
202
$ this ->new_chat_member = isset ($ data ['new_chat_member ' ]) ? $ data ['new_chat_member ' ] : null ;
You can’t perform that action at this time.
0 commit comments