Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Milestone
@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.2certifi2022.06.15Python 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp