Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.
This repository was archived by the owner on May 22, 2019. It is now read-only.

Too slow #33

@afk-mario

Description

@afk-mario

Hi I'm trying to do a telegram bot using the goodreads API, the problem is the results are getting too late, so the responde id for the telegram message ID expired.

Is there something I can do to get the search results faster?

    if query:
        books = gc.search_books(q=query)
        for book in books:
            print(book.title)
            results.append(InlineQueryResultArticle(
                id=uuid4(),
                title=book.title,
                url=book.link,
                description=book.description,
                thumb_url=book.small_image_url,
                input_message_content=InputTextMessageContent(
                    query.upper())))

    update.inline_query.answer(results)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions