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`.
|
||||
|
||||
```text
|
||||
# Import one of:
|
||||
from bwb.tanner import bwb
|
||||
from bwb.jason import bwb
|
||||
from bwb.tdev import bwb
|
||||
from bwb.molly import bwb
|
||||
from bwb import bwb
|
||||
bwb = bwb.bwb(TELEGRAM_ID)
|
||||
```
|
||||
|
||||
### Handshaking
|
||||
|
|
|
@ -60,8 +60,9 @@ class OTP:
|
|||
return True
|
||||
return False
|
||||
|
||||
class common:
|
||||
def __init__(self):
|
||||
class bwb:
|
||||
def __init__(self, tid):
|
||||
self.TELEGRAM_ID = tid
|
||||
self.key = None
|
||||
self.master_pub = None
|
||||
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()
|
Loading…
Reference in New Issue
Block a user