Skip to content

مشکل در ویرایش پیام ارسال شده #31

Description

@kiana63

با سلام
یک مثال برای ویرایش پیام ارسال شده قرار داده اید که من اصل سورس رو بدون تغییر اجرا میکنم بهم پیغام خطا میده و پیام ارسال شده را ویرایش نمیکنه و از طرفی بسیار نیاز به این قطعه کد در بات ام دارم
این پیام خطا رو میده :

2019-04-06 00:13:00,657 dispatcher.py:72 ERROR:
"the JSON object must be str, bytes or bytearray, not int"
Traceback (most recent call last):
File "C:\Users\Kian Co.NOVINPENDAR\AppData\Local\Programs\Python\Python37-32\lib\site-packages\balebot\dispatcher.py", line 68, in run
update_message_json = json_handler.loads(update_message_data)
File "C:\Users\Kian Co.NOVINPENDAR\AppData\Local\Programs\Python\Python37-32\lib\json_init_.py", line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not int
2019-04-06 00:13:00,946 network.py:49 WARNING:
"reconnect success: wss://api.bale.ai/v1/bots/................"
2019-04-06 00:13:05,588 edit message.py:38 ERROR:
"Editing message has been failed"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions