Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Object of type InlineQueryResultArticle is not JSON serializable #3358

Closed
@hsh01

Description

@hsh01

Steps to Reproduce

Trying to send data from webapp to bot with

        bot.answerWebAppQuery(
            web_app_query_id=str(payload.query_id),
            result=InlineQueryResultArticle(
                id=str(uuid.uuid4()),
                title="Caps",
                input_message_content=InputTextMessageContent('text'),
            )
        )

Expected behaviour

no error

Actual behaviour

but got error Object of type InlineQueryResultArticle is not JSON serializable

Operating System

windows 11 x64

Version of Python, python-telegram-bot & dependencies

python-telegram-bot 13.14 (v2.0.1-78-g9483410)
Bot API 6.2
certifi2022.06.15
Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)]

Relevant log output

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions