tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

sendMessage didn't send any message #3030

Closed jonnjonnjo closed 2 months ago

jonnjonnjo commented 2 months ago

I've tried sendMessage, here's the thing that works

  1. documents ( i tried to upload rar and pdf ) is only being uploaded if the size is small, about less than 100
  2. Text always works ( this means that i send a normal plain-text description )
  3. Photos ( sometimes works, but still kinda laggy in the sense that when the callback is being runned in Client.send( sendMessage, callback ), the photos actually haven't been uploaded yet. but, it does works for small photos ( less than 500 kb )

is there a way to solve it? Here's my code

jonnjonnjo commented 2 months ago

sorry for creating this issue, i think the problem is that i delete the file before it finished uploading