Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
accounting
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
Administrator
accounting
Commits
5d6d8d4f
Commit
5d6d8d4f
authored
Oct 29, 2020
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f2490152
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
message.js
message.js
+4
-4
No files found.
message.js
View file @
5d6d8d4f
...
...
@@ -219,7 +219,7 @@ async function userShowMessage(bot, msg, user) {
}
bot
.
sendPhoto
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
'
image.png
'
)
bot
.
editMessageText
(
text
,
opts
)
let
html
=
htmlGenerator
(
table
)
...
...
@@ -228,13 +228,13 @@ let html=htmlGenerator(table)
const
page
=
await
browser
.
newPage
();
await
page
.
setContent
(
html
);
await
page
.
screenshot
({
path
:
'
image.png
'
});
bot
.
sendPhoto
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
'
image.png
'
)
await
browser
.
close
();
bot
.
sendPhoto
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
'
C:
\\
Users
\\
Administrator
\\
accounting
\\
image.png
'
)
}
catch
(
e
)
{
bot
.
sendPhoto
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
'
C:
\\
Users
\\
Administrator
\\
accounting
\\
image.png
'
)
bot
.
sendPhoto
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
'
image.png
'
)
}
...
...
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