@@ -42,7 +42,8 @@ def start_handler(update: Update, context: CallbackContext):
42
42
f'I can notify you about events in your public GitHub repositories. '
43
43
f'You can also reply to my messages to post comments to GitHub right from Telegram. '
44
44
f'I am an improved version of the Telegram GitHub Bot.\n \n '
45
- f'Use /settings to get started.' )
45
+ f'Use /settings to get started.' ,
46
+ disable_notification = True )
46
47
47
48
48
49
def help_handler (update : Update , context : CallbackContext ):
@@ -64,7 +65,8 @@ def help_handler(update: Update, context: CallbackContext):
64
65
url = f'https://telegram.me/{ context .bot .username } ?startgroup=start' )]
65
66
]),
66
67
parse_mode = ParseMode .HTML ,
67
- disable_web_page_preview = True )
68
+ disable_web_page_preview = True ,
69
+ disable_notification = True )
68
70
69
71
70
72
def privacy_handler (update : Update , context : CallbackContext ):
@@ -81,7 +83,8 @@ def privacy_handler(update: Update, context: CallbackContext):
81
83
f'OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n \n '
82
84
f'The MIT-licensed source code for GithubBot revised can be found at <a href="https://github.com/jsmnbom/githubbotrevised">GitHub</a>.' ,
83
85
parse_mode = ParseMode .HTML ,
84
- disable_web_page_preview = True
86
+ disable_web_page_preview = True ,
87
+ disable_notification = True
85
88
)
86
89
87
90
@@ -120,7 +123,8 @@ def reply_handler(update: Update, context: CallbackContext):
120
123
reply_markup = InlineKeyboardMarkup ([[
121
124
InlineKeyboardButton ('Login' , url = deep_link (context .bot , 'login' ))
122
125
]]),
123
- parse_mode = ParseMode .HTML )
126
+ parse_mode = ParseMode .HTML ,
127
+ disable_notification = True )
124
128
context .job_queue .run_once (delete_job , 30 , sent_msg )
125
129
return
126
130
0 commit comments