laravel irazasyed/telegram-bot-sdk

20
February 23, 2021, at 05:50 AM

this is my code which is send photo

Telegram::sendPhoto([
     'chat_id' => $data['message']['chat']['id'],
     'photo' => \Telegram\Bot\FileUpload\InputFile::create("http://dreamhouse.gocrm.uz/".$image->path)
      ]);

some times I get like this error. "Bad Request: file "/var/lib/engine/data2/tmp/2020-11-06-15-01-34-16.jpeg" is too big for a photo [size:24MB]"

how I can chack image size, pls give advise.

READ ALSO
How to get data from DOM to Swift

How to get data from DOM to Swift

I am trying to export some data from an web-page and use it in the swift program by means of webkit

16
Retrofit 2: App Crashes When Reading JSON Without Internet

Retrofit 2: App Crashes When Reading JSON Without Internet

I am trying to stop my app from crashing when trying to read json information using Gson and Retrofit2 when user has no internet connectionAny Ideas?

24
php mysql search for text

php mysql search for text

I am writing a blog, and i have to post things in series, and i need to link them togetherI want to input the next post id to the previous post

47
Fixing Unbound local error: local variable reference before assignment

Fixing Unbound local error: local variable reference before assignment

I am getting an error saying "UnboundLocalError: local variable 'result_numerator' referenced before assignment" and not sure whyAny kind of help will be appreciated

35