组装完整的Telegram消息 :param weekly_no: 期号 :param content_body: 正文内容 :return: 完整的消息文本
(weekly_no, content_body)
| 455 | raise ValueError("Invalid weekly no format: could not find issue number in title") |
| 456 | |
| 457 | def get_message(weekly_no, content_body): |
| 458 | """ |
| 459 | 组装完整的Telegram消息 |
| 460 | :param weekly_no: 期号 |
| 461 | :param content_body: 正文内容 |
| 462 | :return: 完整的消息文本 |
| 463 | """ |
| 464 | print("Getting weekly message") |
| 465 | header = set_title(weekly_no) |
| 466 | footer = set_footer() |
| 467 | channel = set_channel() |
| 468 | return header + content_body + footer + channel |
| 469 | |
| 470 | def count_words(file_path): |
| 471 | """ |
no test coverage detected