Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
quote-bot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Egorov
quote-bot
Commits
8f4d4436
Verified
Commit
8f4d4436
authored
Jan 10, 2021
by
vanutp
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecation warning and error
parent
f9bd0ada
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/quote.js
+2
-2
2 additions, 2 deletions
handlers/quote.js
with
2 additions
and
2 deletions
handlers/quote.js
+
2
−
2
View file @
8f4d4436
...
...
@@ -111,6 +111,7 @@ module.exports = async (ctx) => {
}
}
}
catch
(
error
)
{
if
(
error
.
description
===
'
Bad Request: message to forward not found
'
&&
ctx
.
chat
.
type
===
'
private
'
)
break
console
.
error
(
error
)
quoteMessage
=
null
}
...
...
@@ -301,8 +302,7 @@ module.exports = async (ctx) => {
})
if
(
generate
.
result
.
image
)
{
// eslint-disable-next-line node/no-deprecated-api
const
image
=
new
Buffer
(
generate
.
result
.
image
,
'
base64
'
)
const
image
=
Buffer
.
from
(
generate
.
result
.
image
,
'
base64
'
)
if
(
generate
.
result
.
type
===
'
quote
'
)
{
let
replyMarkup
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment