File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,14 @@ def startmsg(self):
137
137
138
138
@property
139
139
def replying_to (self ):
140
- if time () - self ._last_seen > self ._replying_to_expiration : # if admin wasn't here for a quite long time
140
+ if time () - self ._replying_to_update > self ._replying_to_expiration : # if admin wasn't here for a quite long time
141
141
self ._replying_to = None # ignore last replying_to
142
142
return self ._replying_to
143
143
144
144
@replying_to .setter
145
145
def replying_to (self , value ):
146
146
self ._replying_to = value
147
+ self ._replying_to_update = time ()
147
148
148
149
def update_last_seen (self ):
149
150
self ._last_seen = time ()
Original file line number Diff line number Diff line change @@ -479,6 +479,7 @@ def handle_all(message):
479
479
types .InlineKeyboardButton (strings .btn .block , callback_data = 'user_block_{}' .format (user .id )),
480
480
types .InlineKeyboardButton (strings .btn .reply , callback_data = 'reply_{}' .format (user .id ))
481
481
)
482
+ markup .add (types .InlineKeyboardButton (strings .btn .menu , callback_data = 'menu' ))
482
483
bot .send_message ( # send it to admin
483
484
my_id ,
484
485
text ,
You can’t perform that action at this time.
0 commit comments