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
8c073827
Commit
8c073827
authored
Nov 24, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix latest API update issue
parent
ab9cc04c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
DB.php
src/DB.php
+18
-4
No files found.
src/DB.php
View file @
8c073827
...
@@ -720,7 +720,9 @@ class DB
...
@@ -720,7 +720,9 @@ class DB
self
::
insertChat
(
$chat
,
$date
,
$migrate_to_chat_id
);
self
::
insertChat
(
$chat
,
$date
,
$migrate_to_chat_id
);
//Insert user and the relation with the chat
//Insert user and the relation with the chat
self
::
insertUser
(
$from
,
$date
,
$chat
);
if
(
is_object
(
$from
))
{
self
::
insertUser
(
$from
,
$edit_date
,
$chat
);
}
//Insert the forwarded message user in users table
//Insert the forwarded message user in users table
if
(
$forward_from
instanceof
User
)
{
if
(
$forward_from
instanceof
User
)
{
...
@@ -769,7 +771,12 @@ class DB
...
@@ -769,7 +771,12 @@ class DB
'
);
'
);
$message_id
=
$message
->
getMessageId
();
$message_id
=
$message
->
getMessageId
();
$from_id
=
$from
->
getId
();
if
(
is_object
(
$from
))
{
$from_id
=
$from
->
getId
();
}
else
{
$from_id
=
null
;
}
$reply_to_message
=
$message
->
getReplyToMessage
();
$reply_to_message
=
$message
->
getReplyToMessage
();
$reply_to_message_id
=
null
;
$reply_to_message_id
=
null
;
...
@@ -871,7 +878,9 @@ class DB
...
@@ -871,7 +878,9 @@ class DB
self
::
insertChat
(
$chat
,
$edit_date
);
self
::
insertChat
(
$chat
,
$edit_date
);
//Insert user and the relation with the chat
//Insert user and the relation with the chat
self
::
insertUser
(
$from
,
$edit_date
,
$chat
);
if
(
is_object
(
$from
))
{
self
::
insertUser
(
$from
,
$edit_date
,
$chat
);
}
try
{
try
{
$sth
=
self
::
$pdo
->
prepare
(
'
$sth
=
self
::
$pdo
->
prepare
(
'
...
@@ -882,7 +891,12 @@ class DB
...
@@ -882,7 +891,12 @@ class DB
'
);
'
);
$message_id
=
$edited_message
->
getMessageId
();
$message_id
=
$edited_message
->
getMessageId
();
$from_id
=
$from
->
getId
();
if
(
is_object
(
$from
))
{
$from_id
=
$from
->
getId
();
}
else
{
$from_id
=
null
;
}
$text
=
$edited_message
->
getText
();
$text
=
$edited_message
->
getText
();
$caption
=
$edited_message
->
getCaption
();
$caption
=
$edited_message
->
getCaption
();
...
...
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