Fix a bug
This commit is contained in:
parent
d89de2e1af
commit
3fc8b65fe2
@ -22,7 +22,7 @@ def gen_button(data: Vtuber) -> InlineKeyboardMarkup:
|
||||
[InlineKeyboardButton("主页", url=data.space_link),
|
||||
InlineKeyboardButton(
|
||||
"订阅",
|
||||
url=f"https://t.me/{me.username}?start={data.mid}"), ]
|
||||
url=f"https://t.me/{me.username}?start={data.room_id}"), ]
|
||||
]
|
||||
return InlineKeyboardMarkup(data_)
|
||||
|
||||
|
@ -8,7 +8,7 @@ from json import load
|
||||
from defs.format_time import now_time
|
||||
from defs.utils import Vtuber
|
||||
|
||||
vtubers_info: dict[int:Vtuber] = {}
|
||||
vtubers_info: dict = {}
|
||||
new_vtubers: List[int] = []
|
||||
old_vtubers: List[int] = []
|
||||
if exists(f"data{sep}info.json"):
|
||||
|
@ -29,7 +29,7 @@ def gen_info_button(data: Vtuber) -> InlineKeyboardMarkup:
|
||||
msg_link = sqlite.get(str(data.room_id), {}).get("msg_link", "https://t.me/DD_YTbs_Live_Tracker")
|
||||
data_ = [[InlineKeyboardButton("详情", url=msg_link),
|
||||
InlineKeyboardButton("订阅",
|
||||
url=f"https://t.me/{me.username}?start={data.mid}"), ]]
|
||||
url=f"https://t.me/{me.username}?start={data.room_id}"), ]]
|
||||
return InlineKeyboardMarkup(data_)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user