发布于 2018-05-08 10:33:51
有点困惑,但你想使用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。
https://stackoverflow.com/questions/49981142
复制相似问题