我没有找到一种方法可以通过DBus(例如使用 python)将多个联系人好友移动到 pidgin/finch/libpurple 中的另一个组?我在API 1中没有找到任何东西| 2
问问题
71 次
1 回答
2
有点令人困惑,但你想使用purple_blist_add_contact()
. 不幸的是,我无法在 Python 部分为您提供帮助,但在 C 语言中您会:
// First get the contact of the buddy
PurpleContact *contact = purple_buddy_get_contact(buddy);
// Find the group. Potentially, create the group if it doesn't exist
PurpleGroup *new_group = purple_blist_find_group("New group name");
purple_blist_add_contact(contact, new_group, NULL);
联系人只能是一组的一部分,因此它可以有效地将其从一组移动到另一组。希望 C 代码足以知道要进行哪些 Python/dbus 调用。
于 2018-05-08T10:33:51.517 回答