(TypeError) Type 'InputFile | InputFileBig' is not assignable to type #249
Answered
by
rojvv
a-badalyan
asked this question in
Q&A
-
Have a good day!
Why can this be? Maybe I do something wrong ? This is my code: await this.tgClient.invoke(
new Api.messages.EditChatPhoto({
chatI: telegramChatId,
photo: await this.tgClient.uploadFile({
file: new CustomFile(
'logo.png',
fs.statSync('./logo.png').size,
'./logo.png',
),
workers: 1,
}),
}),
); |
Beta Was this translation helpful? Give feedback.
Answered by
rojvv
Feb 8, 2022
Replies: 1 comment 1 reply
-
Try this: await this.tgClient.invoke(
new Api.messages.EditChatPhoto({
chatId: telegramChatId,
photo: new Api.InputChatUploadedPhoto({
file: await this.tgClient.uploadFile({
file: new CustomFile(
'logo.png',
fs.statSync('./logo.png').size,
'./logo.png'
),
workers: 3
})
})
})
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
a-badalyan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: