Skip to content

(TypeError) Type 'InputFile | InputFileBig' is not assignable to type #249

Answered by roj1512
a-badalyan asked this question in Q&A
Discussion options

You must be logged in to vote

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
            })
        })
    })
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@a-badalyan
Comment options

Answer selected by a-badalyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants