S
S
Sergey2022-03-01 12:38:44
Bots
Sergey, 2022-03-01 12:38:44

Send excel spreadsheet to telegram bot?

I am trying to send an excel document via the telegram bot using the sendDocument method by sending the URL of this document on our website.
But I get the error "Bad Request: wrong file identifier/HTTP URL specified".
In the docks in a foreign language, something is written about the supported formats, but the type and other formats should also work as they should.
The link to the document is working, I checked it ..
Who knows where the dog rummaged?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-03-01
@vabka

The documentation clearly states that only GIF, PDF, and ZIP can be sent via Url.

In sendDocument, sending by URL will currently only work for GIF, PDF and ZIP files.

So you need to download the file yourself and send it to the telegram server.
https://core.telegram.org/bots/api#sending-files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question