File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function __construct ($token){
19
19
20
20
public function chat_id (){
21
21
22
- $ chatID =$ this ->data ()->message ->chat ->id ;
22
+ $ chatID =@ $ this ->data ()->message ->chat ->id ;
23
23
return $ chatID ;
24
24
25
25
}
@@ -33,14 +33,14 @@ public function username (){
33
33
34
34
public function name (){
35
35
36
- $ nome =$ this ->data ()->message ->from ->first_name ;
36
+ $ nome =@ $ this ->data ()->message ->from ->first_name ;
37
37
return $ nome ;
38
38
39
39
}
40
40
41
41
public function text (){
42
42
43
- $ texto =$ this ->data ()->message ->text ;
43
+ $ texto =@ $ this ->data ()->message ->text ;
44
44
return $ texto ;
45
45
46
46
}
@@ -67,6 +67,13 @@ public function lang ($lang=''){
67
67
68
68
}
69
69
70
+ public function type (){
71
+
72
+ $ chatType =@$ this ->data ()->message ->chat ->type ;
73
+
74
+ return $ chatType ;
75
+ }
76
+
70
77
public function data (){
71
78
72
79
$ data =file_get_contents ('php://input ' );
You can’t perform that action at this time.
0 commit comments