Skip to content

Commit 4edbd4e

Browse files
committed
fix trigger on voice chat start, close tgbot-collection#17
1 parent f639293 commit 4edbd4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

yyetsbot/bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def send_my_response(message):
180180
@bot.message_handler(content_types=["photo", "text"])
181181
def send_search(message):
182182
# normal ordered search
183+
if message.text in ("Voice Chat started", "Voice Chat ended"):
184+
logging.warning("This is really funny %s",message.text)
185+
return
183186
base_send_search(message)
184187

185188

0 commit comments

Comments
 (0)