Exemple #1
0
def post(message,owner_id=NerdID, attach=""):
	if attach=="":
		return api.call("wall.post",{'owner_id':owner_id, 'message':message, 'signed':'1', 'from_group':'1'})
	else:
		return api.call("wall.post",{'owner_id':owner_id, 'message':message, 'signed':'1', 'from_group':'1', 'attachments':str(attach)})
Exemple #2
0
def getById(mid):
	return api.call("messages.getById", {'mid':'mid'})
Exemple #3
0
def get(filters="1",count='40'): 
	return api.call("messages.get", {'filters':filters, 'count':count} )
Exemple #4
0
def markAsRead(mids):
	return api.call("messages.markAsRead", {'mids':mids})
Exemple #5
0
def send(uid, message):
	return api.call("messages.send", {'uid':uid, 'message':message})