Closed OttomanDeveloper closed 1 year ago
Oops sorry! Nothing, just forgot to remove some testing things. Was blown out yesterday.
I've retracted the version on pub.dev, will update the code later today.
If you're interested feel free to shoot a PR.
I haven't made any fork but older versions are making the same issue. Can you tell me how I can fix the issue?
I'm extremely sorry for the inconveniences caused to you.
Can you check if v1.10.7
has this issue?
Reset assured, this will be fixed by tonight itself.
I think the issue is resolved.
In v1.10.7? Good to hear :)
Let's keep this issue opened for a while. I'll check this later today.
Hey, I just tried to make the error again. This is my code:
bot.command('test', (ctx) async {
await ctx.api.sendPhoto(
ctx.id,
InputFile.fromFile(
File('example/assets/photo.jpeg'),
),
);
});
The code worked fine, and the photo message was sent. So, it's working even in the latest version? Otherwise, can you please share your code which threw the given exception?
Hey @OttomanDeveloper - can you confirm if this bug exists in the dev
branch? If it doesn't, I'd like to release a new version as soon as possible.
Kind regards :)
In v1.10.7? Good to hear :)
Let's keep this issue opened for a while. I'll check this later today.
Yes, there's no issue in v1.10.7.
Okay, I will check dev branch tomorrow and let you know.
Thankss @OttomanDeveloper. I'll stand by.
Hey, I just tried to make the error again. This is my code:
bot.command('test', (ctx) async { await ctx.api.sendPhoto( ctx.id, InputFile.fromFile( File('example/assets/photo.jpeg'), ), ); });
The code worked fine, and the photo message was sent. So, it's working even in the latest version? Otherwise, can you please share your code which threw the given exception?
I'm not sure why this issue started randomly yesterday, especially since the same version was working fine the day before. However, I followed your advice and downgraded to the version you recommended, v1.10.7.
Hey, thanks! I rechecked it and found that it's not actually just with the sendPhoto
method instead the code would break whenever an exception was thrown from the Telegram side - like sending a message to a blocked chat, etc.
Fixed it in 19f3e640f64b2ce783c9825516938eea5ea62c8a
Thanks again for improving Televerse, feel free to report more issues if you find any. 🚀
I appreciate it. I checked the problem, and it seems to be resolved now.
Awesome!! Thanks for confirming ❤️
It was working perfectly fine before but today whenever I try to send the photo. I'm getting this issue. File Path:
package:televerse/src/utils/http.dart
response = await _httpClient.multipartPost( _buildUri("sendPhoto"), files, params, );