for conv in purple.PurpleGetIms():
    purple.PurpleConvImSend(purple.PurpleConvIm(conv), 'Ignore this message.')
else:
    print('Could not find piding DBus service, make sure Pidgin is running.')
Send and receive messages via (libpurple) messenger protocols