File tree 2 files changed +3
-3
lines changed
plugins/eh_telegram_master
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
if sys .version_info .major < 3 :
11
11
raise Exception ("Python 3.x is required. Your version is %s." % sys .version )
12
12
13
- __version__ = "1.5.5 "
13
+ __version__ = "1.5.6 "
14
14
15
15
parser = argparse .ArgumentParser (description = "EH Forwarder Bot is an extensible chat tunnel framework which allows "
16
16
"users to contact people from other chat platforms, and ultimately "
Original file line number Diff line number Diff line change @@ -1273,8 +1273,8 @@ def stop_polling(self, val):
1273
1273
1274
1274
@staticmethod
1275
1275
def b64en (s ):
1276
- return base64 .b64encode (s .encode ()).decode ()
1276
+ return base64 .b64encode (s .encode (), b"-_" ).decode (). rstrip ( "=" )
1277
1277
1278
1278
@staticmethod
1279
1279
def b64de (s ):
1280
- return base64 .b64decode (s ).decode ()
1280
+ return base64 .b64decode (( s + '=' * ( - len ( s ) % 4 )). encode (), b"-_" ).decode ()
You can’t perform that action at this time.
0 commit comments