{"action":"created","issue":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/472","repository_url":"https://api.github.com/repos/littlecodersh/ItChat","labels_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/472/comments","events_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/472/events","html_url":"https://github.com/littlecodersh/ItChat/issues/472","id":248739869,"number":472,"title":"主动发送群消息和下线发送消息的方法","user":{"login":"CapGhost","id":30328668,"avatar_url":"https://avatars2.githubusercontent.com/u/30328668?v=4","gravatar_id":"","url":"https://api.github.com/users/CapGhost","html_url":"https://github.com/CapGhost","followers_url":"https://api.github.com/users/CapGhost/followers","following_url":"https://api.github.com/users/CapGhost/following{/other_user}","gists_url":"https://api.github.com/users/CapGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/CapGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CapGhost/subscriptions","organizations_url":"https://api.github.com/users/CapGhost/orgs","repos_url":"https://api.github.com/users/CapGhost/repos","events_url":"https://api.github.com/users/CapGhost/events{/privacy}","received_events_url":"https://api.github.com/users/CapGhost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-08T14:44:45Z","updated_at":"2017-08-16T13:48:26Z","closed_at":null,"body":"1.主动给群发送一条消息，我是这样写的\r\nchatroomList=itchat.get_chatrooms()\r\n\tif chatroomList:\r\n\t\tchatroomList[0].send(msg)\r\n但是如果想同时给两个群发，就是这样\r\nchatroomList=itchat.get_chatrooms()\r\n\tif chatroomList:\r\n\t\tchatroomList[0].send(msg)\r\n\t\tchatroomList[1].send(msg)\r\n我想问一下，为什么chatroomList[0:]send()是无效的？必须要chatroomList[0]，chatroomList[1]这样写才行？\r\n\r\n2.通过手机端断开下线时，想给群主动发一条信息表示机器人下线，应该如何处理？\r\n\r\n谢谢了"},"comment":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/comments/322776621","html_url":"https://github.com/littlecodersh/ItChat/issues/472#issuecomment-322776621","issue_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/472","id":322776621,"user":{"login":"CapGhost","id":30328668,"avatar_url":"https://avatars2.githubusercontent.com/u/30328668?v=4","gravatar_id":"","url":"https://api.github.com/users/CapGhost","html_url":"https://github.com/CapGhost","followers_url":"https://api.github.com/users/CapGhost/followers","following_url":"https://api.github.com/users/CapGhost/following{/other_user}","gists_url":"https://api.github.com/users/CapGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/CapGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CapGhost/subscriptions","organizations_url":"https://api.github.com/users/CapGhost/orgs","repos_url":"https://api.github.com/users/CapGhost/repos","events_url":"https://api.github.com/users/CapGhost/events{/privacy}","received_events_url":"https://api.github.com/users/CapGhost/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T13:48:26Z","updated_at":"2017-08-16T13:48:26Z","body":"感谢指导。"}}
{"actor":{"display_login":"CapGhost"}}