138 InlineQueryResultArticle(
139 id=result_id,
140 title=f"{name} - {i}",
141 input_message_content=InputTextMessageContent(142 f"{basic_info}\n\n选择的难度:{i}\n{chart_basic_info}"
143 ),
144 thumb_url=music_info.get("illustration"),
118 item = InlineQueryResultArticle(
119 id=result_id,
120 title=name,
121 input_message_content=InputTextMessageContent(122 f"输入的文本:{text}\n解析的歌曲:{name}\n匹配率:{score}"
123 ),
124 )
23
24# Initialize bot and dispatcher
25bot = Bot(token=sys.argv[1])
26dp = Dispatcher(bot) 27
28logging.info("读取 JSON 信息")
29with open("phigros_bot/Phigros.json", "r") as f:
Too many positional arguments are provided while calling the function. Check the function signature of the function being called to make sure that you are passing the right arguments.
string = 'abcd'
string.center(10, '=', ' ') # center only takes 2 arguments
string = 'abcd'
string.center(10, '=')