Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
ab9cc04c
Commit
ab9cc04c
authored
Nov 24, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #331
parent
32ebf1af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ServerResponse.php
src/Entities/ServerResponse.php
+3
-3
No files found.
src/Entities/ServerResponse.php
View file @
ab9cc04c
...
...
@@ -60,12 +60,12 @@ class ServerResponse extends Entity
}
elseif
(
isset
(
$data
[
'result'
][
'file_id'
]))
{
//Response from getFile
$this
->
result
=
new
File
(
$data
[
'result'
]);
}
elseif
(
isset
(
$data
[
'result'
][
'title'
]))
{
//Response from getChat
$this
->
result
=
new
Chat
(
$data
[
'result'
]);
}
elseif
(
isset
(
$data
[
'result'
][
'username'
]))
{
//Response from getMe
$this
->
result
=
new
User
(
$data
[
'result'
]);
}
elseif
(
isset
(
$data
[
'result'
][
'id'
]))
{
//Response from getChat
$this
->
result
=
new
Chat
(
$data
[
'result'
]);
}
elseif
(
isset
(
$data
[
'result'
][
'user'
]))
{
//Response from getChatMember
$this
->
result
=
new
ChatMember
(
$data
[
'result'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment