[SVN] release 0.4.0
[SVN] all comments in code now in English; Sofia ♥ Fuck you with this barbarian language in code comments! (no, no fuck please) [FIX] monkey-patched telethon library to fix updates receiving in some sessions (fix github issue #686; commit b20aa0ccc91b3d767c26702f3611c44772d87f5a) [FIX] fixed "normal" quotation, such as `> text`, in previous releases it was intended to be message id to reply [FIX] now processing bots in contact list, in roster with `b` prefix [FIX] fixed message editing and deleting in supergroups [FIX] now removing old telegram session from database when initiating a new one for current JID [FIX] fixed group creating; group, supergroup, channels creating is now OK and tested [FIX] fixed processing bot in roster; now it does not crashes gateway [UPD] default status update interval is now 30 [UPD] slighly (and finally) changed behaviour of presences: `Last seen recently` = `dnd (do not disturb)`, because user that enabled this privacy settings does not want you to disturb `Last seen a long time ago` = `xa (extended away)`, because it is 'long' away 'Last seen at %date%` = `away`, because user just got away [ADD] basic interaction with bots (now only with text commands)
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
"""
|
||||
Различные полезные функции
|
||||
"""
|
||||
|
||||
import types
|
||||
import time
|
||||
import pytz
|
||||
@@ -36,7 +32,9 @@ def get_contact_jid(peer, gatejid):
|
||||
return 'g' + str(peer.id) + '@' + gatejid
|
||||
elif peer.id and not peer.bot: # it is... user?
|
||||
return 'u' + str(peer.id) + '@' + gatejid
|
||||
else:
|
||||
elif peer.id and peer.bot:
|
||||
return 'b' + str(peer.id) + '@' + gatejid
|
||||
else: # what a fuck is this?
|
||||
return None
|
||||
|
||||
def localtime(utc_dt):
|
||||
|
||||
Reference in New Issue
Block a user