J
J
Javasavr2019-07-09 15:21:12
Node.js
Javasavr, 2019-07-09 15:21:12

How to read the contents of a TXT file using a Telegram bot?

There is a NodeJS bot, the user must send a TXT file, and the bot must read the content and display the result, tell me how to implement this using Telegraf

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava0072, 2019-07-09
@Slava0072

Get a download link via api, download the file in some way and read it using the . And then do whatever you want with the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question