Commit 0ce379f 1 parent f78280a commit 0ce379f Copy full SHA for 0ce379f
File tree 5 files changed +13
-3
lines changed
5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 16
16
caret-color : transparent;
17
17
}
18
18
19
- @media (max-height : 768 px ) {
19
+ @media (max-height : 900 px ) {
20
20
: root {
21
21
--font-size-base : 14px ;
22
22
--font-size-team-name : 1.8rem ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
+ from pathlib import Path
3
4
from random import choice
4
5
import asyncio
5
6
import datetime
6
- from pathlib import Path
7
7
import json
8
8
import os
9
9
import sys
10
+
10
11
from dotenv import load_dotenv
12
+
11
13
from telegram import Bot , constants
14
+ from telegram .helpers import escape_markdown
12
15
13
16
from logger import logger
14
17
import web_scrape
@@ -46,6 +49,8 @@ def check_games_today(games):
46
49
47
50
return False
48
51
52
+ def escape_markdown_v2 (text ):
53
+ return escape_markdown (text , version = 2 )
49
54
50
55
def create_message (* args ):
51
56
# pylint: disable=unused-variable,too-many-locals
@@ -72,7 +77,7 @@ def create_message(*args):
72
77
73
78
yield f"""
74
79
ืืฉืืง โฝ *ืืืื* ืืฉืขื *{ game_hour } *
75
- *{ league } *: [{ home_team } ]({ home_team_url } ) \\ |\\ | [{ guest_team } ]({ guest_team_url } )
80
+ *{ league } *: [{ escape_markdown_v2 ( home_team ) } ]({ home_team_url } ) \\ |\\ | [{ escape_markdown_v2 ( guest_team ) } ]({ guest_team_url } )
76
81
ืฆืคื ืืกืืืช ืืืืฉืื: *{ custom_road_block_time } *
77
82
ืฆืคื ืืืืืื ืืฉืืขืจ: *{ specs_word } * { custom_sepcs_number }
78
83
Original file line number Diff line number Diff line change 72
72
"name" : "Hapoel Kiryat Shmona" ,
73
73
"url" : "https://www.football.co.il/hapoel-kiryat-shmona/" ,
74
74
"logo" : "https://static.football.co.il/wp-content/themes/kingclub-theme/images/teams/4563.png" ,
75
+ },
76
+ 'ื.ืก. ืืฉืืื' : {
77
+ "name" : "Football Club Ashdod" ,
78
+ "url" : "https://www.football.co.il/football-club-ashdod/" ,
79
+ "logo" : "https://static.football.co.il/wp-content/themes/kingclub-theme/images/teams/4548.png" ,
75
80
}
76
81
}
77
82
You canโt perform that action at this time.
0 commit comments