This repository has been archived on 2024-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramBot/classes/geobase/geobase.py

21 lines
412 B
Python
Raw Normal View History

2023-08-27 23:43:16 +03:00
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import List
from classes.location import Location
class GeoBase(ABC):
@abstractmethod
async def get_location(self) -> Location:
pass
@abstractmethod
async def find_location(self) -> List[Location]:
pass
@abstractmethod
async def nearby_location(self) -> List[Location]:
pass