-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encountering Unusual Error While Using Bot API's sendPhoto Method with Bot Token #151
Comments
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 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 Kind regards :) |
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. |
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 Fixed it in 19f3e64 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,
);
The text was updated successfully, but these errors were encountered: