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

Commit84d7141

Browse files
authored
Quick fix for duplicate footer after chat migration (#20)
1 parent6b237f8 commit84d7141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎bot/github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ def _send(self, repo, text, check_repo: Callable[[Repo], bool], suffix=REPLY_MES
6464
ifcheck_repo(repo):
6565
truncation_limit=chat_data.get('truncation_limit',DEFAULT_TRUNCATION_LIMIT)
6666
try:
67-
text=truncated_text[truncation_limit]
67+
message_text=truncated_text[truncation_limit]
6868
exceptKeyError:
69-
text=truncate(text,TRUNCATED_MESSAGE,suffix,max_length=truncation_limit)
69+
message_text=truncate(text,TRUNCATED_MESSAGE,suffix,max_length=truncation_limit)
7070

7171
try:
72-
self.dispatcher.bot.send_message(chat_id=chat_id,text=text,
72+
self.dispatcher.bot.send_message(chat_id=chat_id,text=message_text,
7373
parse_mode=ParseMode.HTML,disable_web_page_preview=True)
7474
exceptTelegramError:
7575
logging.error('error while sending github update',exc_info=1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp