question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InlineQueryResultPhoto and InlineQueryResultCachedPhoto confusion.

See original GitHub issue

Hello I’m writing a inline bot but I’ve got a problem with the answerInlineQuery. I want to have an InlineQueryResultPhoto so that I can use an external photo but Telegraf gives me an error. can't find field "photo_file_id". In the Telegram bot documentation, this field is a parameter of InlineQueryResultCachedPhoto. How can I use InlineQueryResultPhoto, instead of InlineQueryResultCachedPhoto?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sascha1337commented, Jan 10, 2018

How 2 fix this issue now ? answerInlineQuery(results, {cache_time: 0}) does not help !

1reaction
lioialessandrocommented, Jul 10, 2017

That’s what I am asking. This is becoming more a pull request than an issue. It would be great to have a class for every InlineQueryResult* that Telegram support for better support and maintanance

Read more comments on GitHub >

github_iconTop Results From Across the Web

telegram.InlineQueryResultCachedPhoto - python-telegram-bot
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an...
Read more >
Welcome to Python Telegram Bot's documentation! — Python ...
InlineQueryResultCachedPhoto · telegram. ... InlineQueryResultPhoto · telegram. ... Avoid confusion with user's urllib3 by renaming vendored urllib3 to ...
Read more >
telegram - Go Packages
InlineQueryResultPhoto is an inline query response photo. type InlineQueryResultVenue ¶. type InlineQueryResultVenue struct { ...
Read more >
python-telegram-bot Documentation - Read the Docs
Warning: Not to be confused with telegram.Bot. ... InlineQueryResultPhoto(id, photo_url, thumb_url, photo_width=None, photo_height=None,.
Read more >
Release 3.0.0b7 aiogram Team
Source: https://core.telegram.org/bots/api#inlinequeryresultcachedphoto type: str ... InlineQueryResultPhoto(*, type: str = Inline-. QueryResultType.PHOTO,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found