|
| 1 | +# Pyrogram - Telegram MTProto API Client Library for Python |
| 2 | +# Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance> |
| 3 | +# |
| 4 | +# This file is part of Pyrogram. |
| 5 | +# |
| 6 | +# Pyrogram is free software: you can redistribute it and/or modify |
| 7 | +# it under the terms of the GNU Lesser General Public License as published |
| 8 | +# by the Free Software Foundation, either version 3 of the License, or |
| 9 | +# (at your option) any later version. |
| 10 | +# |
| 11 | +# Pyrogram is distributed in the hope that it will be useful, |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +# GNU Lesser General Public License for more details. |
| 15 | +# |
| 16 | +# You should have received a copy of the GNU Lesser General Public License |
| 17 | +# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. |
| 18 | + |
| 19 | + |
| 20 | +class Storage: |
| 21 | + def __init__(self, name: str): |
| 22 | + self.name = name |
| 23 | + |
| 24 | + def open(self): |
| 25 | + raise NotImplementedError |
| 26 | + |
| 27 | + def save(self): |
| 28 | + raise NotImplementedError |
| 29 | + |
| 30 | + def close(self): |
| 31 | + raise NotImplementedError |
| 32 | + |
| 33 | + def update_peers(self, peers): |
| 34 | + raise NotImplementedError |
| 35 | + |
| 36 | + def get_peer_by_id(self, peer_id): |
| 37 | + raise NotImplementedError |
| 38 | + |
| 39 | + def get_peer_by_username(self, username): |
| 40 | + raise NotImplementedError |
| 41 | + |
| 42 | + def get_peer_by_phone_number(self, phone_number): |
| 43 | + raise NotImplementedError |
| 44 | + |
| 45 | + def export_session_string(self): |
| 46 | + raise NotImplementedError |
| 47 | + |
| 48 | + @property |
| 49 | + def peers_count(self): |
| 50 | + raise NotImplementedError |
| 51 | + |
| 52 | + @property |
| 53 | + def dc_id(self): |
| 54 | + raise NotImplementedError |
| 55 | + |
| 56 | + @dc_id.setter |
| 57 | + def dc_id(self, value): |
| 58 | + raise NotImplementedError |
| 59 | + |
| 60 | + @property |
| 61 | + def test_mode(self): |
| 62 | + raise NotImplementedError |
| 63 | + |
| 64 | + @test_mode.setter |
| 65 | + def test_mode(self, value): |
| 66 | + raise NotImplementedError |
| 67 | + |
| 68 | + @property |
| 69 | + def auth_key(self): |
| 70 | + raise NotImplementedError |
| 71 | + |
| 72 | + @auth_key.setter |
| 73 | + def auth_key(self, value): |
| 74 | + raise NotImplementedError |
| 75 | + |
| 76 | + @property |
| 77 | + def date(self): |
| 78 | + raise NotImplementedError |
| 79 | + |
| 80 | + @date.setter |
| 81 | + def date(self, value): |
| 82 | + raise NotImplementedError |
| 83 | + |
| 84 | + @property |
| 85 | + def user_id(self): |
| 86 | + raise NotImplementedError |
| 87 | + |
| 88 | + @user_id.setter |
| 89 | + def user_id(self, value): |
| 90 | + raise NotImplementedError |
| 91 | + |
| 92 | + @property |
| 93 | + def is_bot(self): |
| 94 | + raise NotImplementedError |
| 95 | + |
| 96 | + @is_bot.setter |
| 97 | + def is_bot(self, value): |
| 98 | + raise NotImplementedError |
0 commit comments