Botbuilder-dotnet: Telegram Channel not accepting Landscape and rectangle images when sent as media

Created on 3 Oct 2019  路  10Comments  路  Source: microsoft/botbuilder-dotnet

Version

4.4.4

Describe the bug

Bot framework connect to various channels including telegram.
Sending image from telegram as media will not work if the image is landscape or rectangle.
The channel logs the following error:
Sequence contains no matching element

To Reproduce

Steps to reproduce the behavior:

  1. Create bot
  2. Connect to Telegram
  3. Open Telegram Bot
  4. Send image that is landscape

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

Bot Services bug customer-replied-to customer-reported

All 10 comments

Hi @muminasaad

I am not able to reproduce this issue. I tried from both Telegram on Windows (desktop app) and Telegram on Android (phone).

A few questions/points:

  • The most recent version of the bot framework is 4.5. Are you able to upgrade and test again?
  • What OS/platform are you testing on?
  • Have you tried with multiple different landscape images?
  • Have you tried debugging locally using ngrok?
  • What language is your bot running in (.NET/Node,Typescript etc)?
  • What version of Telegram?
  • You are sending as images, not as files, correct?

If you want to share your images, I'd be happy to test. Or I can send you the images that I tested with.

Dear @dmvtech

i am using bot framework version 4.4.4, i cant upgrade as this is a big project for a client and we are too close to release date.

OS is windows

yes multiple landscape images and rectangular images.

yes i have connected to ngrok to my local bot but the call itself was not reaching the bot.

BotFramework .Net Version C#

Telegram Latest Version

Send images as media not files you are correct.

photo_2019-10-03_14-57-02

Image is attached

you can share the files with me

the bug is that the file doesnt reach the bot if it was as media but as files it reaches the bot.

Ok, I found some odd behavior, but not sure if it is the same as yours. I'm doing more testing.

Here's what I used to test:
https://github.com/dmvtech/randomstuff/blob/master/dog.jpg
https://github.com/dmvtech/randomstuff/blob/master/seattle2.jpg

Ok. My apologies. 馃槅

I don't know what strangeness I was witnessing last week, but I can definitely reproduce this now.

Tested entirely with .jpg files.

Tested square (410 x 410) image: failure to receive event.
Tested same image, one pixel thinner (portrait, 409 x 410): failure
Tested same image, one pixel wider (landscape, 410 x 411): failure

@dmvtech hhhhhhhhhhhhhhhh as usual we the developer need to return a bug unable to reproduce at least one to believe it is a bug :P

Fix available -- should be deployed before 10/18

@arturl This is still reproducing for me. Can you give us an update on the fix?

I'll update this ticket when the fix is deployed.

The fix has been deployed, enjoy!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digitaldias picture digitaldias  路  6Comments

brandonh-msft picture brandonh-msft  路  4Comments

v-kydela picture v-kydela  路  4Comments

brandonh-msft picture brandonh-msft  路  6Comments

don4of4 picture don4of4  路  4Comments