Skip to content

Commit ab10c0c

Browse files
authored
Add files via upload
1 parent bcd22c2 commit ab10c0c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

func.class.php

+10-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function __construct ($token){
1919

2020
public function chat_id (){
2121

22-
$chatID=$this->data ()->message->chat->id;
22+
$chatID=@$this->data ()->message->chat->id;
2323
return $chatID;
2424

2525
}
@@ -33,14 +33,14 @@ public function username (){
3333

3434
public function name (){
3535

36-
$nome=$this->data ()->message->from->first_name;
36+
$nome=@$this->data ()->message->from->first_name;
3737
return $nome;
3838

3939
}
4040

4141
public function text (){
4242

43-
$texto=$this->data ()->message->text;
43+
$texto=@$this->data ()->message->text;
4444
return $texto;
4545

4646
}
@@ -67,6 +67,13 @@ public function lang ($lang=''){
6767

6868
}
6969

70+
public function type (){
71+
72+
$chatType=@$this->data ()->message->chat->type;
73+
74+
return $chatType;
75+
}
76+
7077
public function data (){
7178

7279
$data=file_get_contents ('php://input');

0 commit comments

Comments
 (0)