400: WEBPAGE_CURL_FAILED (caused by messages.SendMedia) new Api.messages.SendMedia({

entities: html[1],
peer: groupId,
media: new Method({ url }),
message: html[0],
}),


what's wrong here ?

8 ответов

42 просмотра

Telegram server is unable to fetch the media from the url.

And I don't remember sendmedia being an actual telegram bot api method 🤔

VmFsa3lyaWU=- Автор вопроса
VmFsa3lyaWU=
but when i open link in web browser it is working

Are you sure that it is pointing right into a file? Sometimes websites are using Javascript to start download and it wont work in that case

VmFsa3lyaWU=
hm

Don't really mind this if it will work at the end. Maybe library just calls sendphoto/audio/document depending on content type or maybe that's just a method that's not on method list

Воспоминания <last name><a href=></a>
They use @gramjschat

oh, is it based on common telegram api and not a bot one?

Похожие вопросы

Карта сайта