This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Repository navigation
(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,
}),
}),
); |
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
})
})
})
) |
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: