0

i use Telegram SDK for laravel

how to receive file from user ??

Amin Mohammad
  • 23
  • 1
  • 5
  • Do you mean, you receive a file from the user and want to do something with it, or do you want to send a file to the user? – philosopher Sep 26 '17 at 06:47
  • yes ,receive a file from user and want to do something @philosopher – Amin Mohammad Sep 26 '17 at 06:48
  • 1
    Possible duplicate of [How do I download a file or photo that was sent to my Telegram bot?](https://stackoverflow.com/questions/31096358/how-do-i-download-a-file-or-photo-that-was-sent-to-my-telegram-bot) – philosopher Sep 26 '17 at 06:51
  • is true . but i cant receive request when user send file . just receive request when user send text . @philosopher – Amin Mohammad Sep 26 '17 at 07:05

1 Answers1

0

if you want to receive a file from a user, have a look at this API section https://core.telegram.org/bots/api#getfile:

Use this method to get basic info about a file and prepare it for downloading

philosopher
  • 871
  • 1
  • 7
  • 16