mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
update message to user
This commit is contained in:
parent
246d49ac17
commit
9dfc643cf0
4
main.py
4
main.py
@ -52,8 +52,8 @@ async def office_home(query: types.CallbackQuery, callback_data: dict[str, str])
|
||||
# or reply INTO webhook
|
||||
text = parse_site(
|
||||
driver=driver,
|
||||
url='https://yandex.ru/maps/213/moscow/stops/stop__9640289/?'
|
||||
'l=masstransit&ll=37.507947%2C55.802094&tab=timetable&z=21',
|
||||
url='https://yandex.ru/maps/213/moscow/stops/stop__9640288/?'
|
||||
'l=masstransit&ll=37.505338%2C55.800160&tab=overview&z=211',
|
||||
message='Остановка Улица Алабяна'
|
||||
)
|
||||
return await query.message.edit_text(text)
|
||||
|
@ -72,5 +72,5 @@ def parse_site(driver: WebDriver, url: str, message: str) -> str:
|
||||
if bus_300:
|
||||
answer += f'Автобус {bus_300.text} - {bus_300_arrival.text}\n'
|
||||
if bus_t19:
|
||||
answer += f'Автобус {bus_300.text} - {bus_300_arrival.text}\nАвтобус {bus_t19.text} - {bus_t19_arrival.text}'
|
||||
answer += f'Автобус {bus_t19.text} - {bus_t19_arrival.text}'
|
||||
return answer
|
||||
|
Loading…
x
Reference in New Issue
Block a user