R
Railway16mo ago
ZETREY

can not send image with my telegram bot

I can some one help me please I try to send captcha with nodejs-captcha using buffer in my telegram bot it works well when bot is on local but when I deploy it I get this error
Fontconfig error: Cannot load default config file
Fontconfig error: Cannot load default config file
26 Replies
Percy
Percy16mo ago
Project ID: 377b4920-ced5-4b5e-af8a-872a14bf32d3
ZETREY
ZETREY16mo ago
377b4920-ced5-4b5e-af8a-872a14bf32d3
Brody
Brody16mo ago
what library are you using for the telegram bot
ZETREY
ZETREY16mo ago
telegrafjs
Brody
Brody16mo ago
cool, not a userbot, good. could I get a link to your repo please, I'll try to look into this I just saw that this is your second help thread for the same issue, please don't do that again
Brody
Brody16mo ago
thats a private repo
ZETREY
ZETREY16mo ago
Public now
Brody
Brody16mo ago
can I see a full screenshot of the error
ZETREY
ZETREY16mo ago
Brody
Brody16mo ago
I remember saying "full" meaning everything in the logs
ZETREY
ZETREY16mo ago
Brody
Brody16mo ago
now do you know at what point in the code those null prints and the fontconfig error print occurred?
ZETREY
ZETREY16mo ago
Yes null is for referral code
Brody
Brody16mo ago
okay sometimes there will be no referral codes, no issue with that I assume and where is the fontconfig error coming from?
ZETREY
ZETREY16mo ago
I get this image when bot send captcha
ZETREY
ZETREY16mo ago
In local image look like this
Brody
Brody16mo ago
and this is a captcha to verify with what API?
ZETREY
ZETREY16mo ago
I use nodejs-captcha library
Brody
Brody16mo ago
got it I will look into this
ZETREY
ZETREY16mo ago
Okay sir
Brody
Brody16mo ago
@ZHKING
Brody
Brody16mo ago
add this to your project
ZETREY
ZETREY16mo ago
thanks sir all works fine
Brody
Brody16mo ago
awsome