D
D
Daniel2021-10-06 22:20:29
Python
Daniel, 2021-10-06 22:20:29

Can a telegram bot read an exel file that I sent to it?

I need to extract some information from the exel file, can the bot, when I send him an exel file, subtract information from it in some way?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
veryoriginalnickname, 2021-10-06
@DanielWorker

it's not about the bot, it's about python and libraries. All the bot does is fetch a request from the user (with a specific context, file type, text, etc) and give a response. Anything in between doesn't really apply to a bot. So no, a telegram bot cannot. But python and libraries probably can, and then the bot can send the result of their work. This is all to the fact that the question could not be associated with bots at all, but rather set it as "Is it possible to extract some information from an excel file in Python?".
(Python experts don’t beat me, I wrote purely my subjective opinion)

M
Mikhail Krostelev, 2021-10-06
@twistfire92

Yes maybe. It's possible. Learn libraries for working with exel files and telegram bots.

V
Vindicar, 2021-10-06
@Vindicar

Yes, you can, if we are talking about Excel (and not exel).
Depends on the file format. The new .xlsx is quite easy to read, there are libraries for this, but you can also use the standard Python library - it's just a zip archive with a bunch of xml files inside. Digging out the data will not be very difficult.
But the old .xls is a binary, poorly documented format. He will have problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question