Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kykint
/
TELEGRAMBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
kykint
2019-06-05 21:45:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7686b8e29bc20ed9ddc60e3a6692601f282dd66d
7686b8e2
1 parent
e80eb82c
Choose largest received image possible
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
7686b8e
...
...
@@ -196,7 +196,7 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => {
bot
.
on
(
'photo'
,
(
msg
)
=>
{
const
user
=
msg
.
from
;
const
chatId
=
msg
.
chat
.
id
;
const
photo
=
msg
.
photo
[
2
];
const
photo
=
msg
.
photo
[
msg
.
photo
.
length
-
1
];
// Choose largest image possible
const
photoId
=
photo
.
file_id
;
// Download the image, which will later be deleted to avoid git detection
...
...
Please
register
or
login
to post a comment