Let users initialize bwb object with ID themselves
This commit is contained in:
parent
85db7df8ef
commit
6e96b6cee4
|
@ -7,11 +7,8 @@ bot with bot.
|
||||||
Install with `pip install --upgrade bwb`.
|
Install with `pip install --upgrade bwb`.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
# Import one of:
|
from bwb import bwb
|
||||||
from bwb.tanner import bwb
|
bwb = bwb.bwb(TELEGRAM_ID)
|
||||||
from bwb.jason import bwb
|
|
||||||
from bwb.tdev import bwb
|
|
||||||
from bwb.molly import bwb
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Handshaking
|
### Handshaking
|
||||||
|
|
|
@ -60,8 +60,9 @@ class OTP:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
class common:
|
class bwb:
|
||||||
def __init__(self):
|
def __init__(self, tid):
|
||||||
|
self.TELEGRAM_ID = tid
|
||||||
self.key = None
|
self.key = None
|
||||||
self.master_pub = None
|
self.master_pub = None
|
||||||
self.init_secret = ''
|
self.init_secret = ''
|
|
@ -1,6 +0,0 @@
|
||||||
from .common import common
|
|
||||||
|
|
||||||
class user(common):
|
|
||||||
TELEGRAM_ID = 172033414
|
|
||||||
|
|
||||||
bwb = user()
|
|
|
@ -1,6 +0,0 @@
|
||||||
from .common import common
|
|
||||||
|
|
||||||
class user(common):
|
|
||||||
TELEGRAM_ID = 556762656
|
|
||||||
|
|
||||||
bwb = user()
|
|
|
@ -1,6 +0,0 @@
|
||||||
from .common import common
|
|
||||||
|
|
||||||
class user(common):
|
|
||||||
TELEGRAM_ID = 79316791
|
|
||||||
|
|
||||||
bwb = user()
|
|
|
@ -1,6 +0,0 @@
|
||||||
from .common import common
|
|
||||||
|
|
||||||
class user(common):
|
|
||||||
TELEGRAM_ID = 559772740
|
|
||||||
|
|
||||||
bwb = user()
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setuptools.setup(name='bwb',
|
setuptools.setup(name='bwb',
|
||||||
version='2.1.1',
|
version='3.0.0',
|
||||||
description='bwb',
|
description='bwb',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user