id
int32
0
252k
repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
220,300
carpedm20/fbchat
fbchat/_client.py
Client.fetchUserInfo
def fetchUserInfo(self, *user_ids): """ Get users' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param user_ids: One or more user ID(s) to query :return: :class:`models.User` objects, labeled by their ID :rtype: dict...
python
def fetchUserInfo(self, *user_ids): """ Get users' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param user_ids: One or more user ID(s) to query :return: :class:`models.User` objects, labeled by their ID :rtype: dict...
[ "def", "fetchUserInfo", "(", "self", ",", "*", "user_ids", ")", ":", "threads", "=", "self", ".", "fetchThreadInfo", "(", "*", "user_ids", ")", "users", "=", "{", "}", "for", "id_", ",", "thread", "in", "threads", ".", "items", "(", ")", ":", "if", ...
Get users' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param user_ids: One or more user ID(s) to query :return: :class:`models.User` objects, labeled by their ID :rtype: dict :raises: FBchatException if request failed
[ "Get", "users", "info", "from", "IDs", "unordered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L878-L898
220,301
carpedm20/fbchat
fbchat/_client.py
Client.fetchPageInfo
def fetchPageInfo(self, *page_ids): """ Get pages' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param page_ids: One or more page ID(s) to query :return: :class:`models.Page` objects, labeled by their ID :rtype: dict...
python
def fetchPageInfo(self, *page_ids): """ Get pages' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param page_ids: One or more page ID(s) to query :return: :class:`models.Page` objects, labeled by their ID :rtype: dict...
[ "def", "fetchPageInfo", "(", "self", ",", "*", "page_ids", ")", ":", "threads", "=", "self", ".", "fetchThreadInfo", "(", "*", "page_ids", ")", "pages", "=", "{", "}", "for", "id_", ",", "thread", "in", "threads", ".", "items", "(", ")", ":", "if", ...
Get pages' info from IDs, unordered .. warning:: Sends two requests, to fetch all available info! :param page_ids: One or more page ID(s) to query :return: :class:`models.Page` objects, labeled by their ID :rtype: dict :raises: FBchatException if request failed
[ "Get", "pages", "info", "from", "IDs", "unordered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L900-L920
220,302
carpedm20/fbchat
fbchat/_client.py
Client.fetchGroupInfo
def fetchGroupInfo(self, *group_ids): """ Get groups' info from IDs, unordered :param group_ids: One or more group ID(s) to query :return: :class:`models.Group` objects, labeled by their ID :rtype: dict :raises: FBchatException if request failed """ threa...
python
def fetchGroupInfo(self, *group_ids): """ Get groups' info from IDs, unordered :param group_ids: One or more group ID(s) to query :return: :class:`models.Group` objects, labeled by their ID :rtype: dict :raises: FBchatException if request failed """ threa...
[ "def", "fetchGroupInfo", "(", "self", ",", "*", "group_ids", ")", ":", "threads", "=", "self", ".", "fetchThreadInfo", "(", "*", "group_ids", ")", "groups", "=", "{", "}", "for", "id_", ",", "thread", "in", "threads", ".", "items", "(", ")", ":", "if...
Get groups' info from IDs, unordered :param group_ids: One or more group ID(s) to query :return: :class:`models.Group` objects, labeled by their ID :rtype: dict :raises: FBchatException if request failed
[ "Get", "groups", "info", "from", "IDs", "unordered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L922-L939
220,303
carpedm20/fbchat
fbchat/_client.py
Client.fetchThreadInfo
def fetchThreadInfo(self, *thread_ids): """ Get threads' info from IDs, unordered .. warning:: Sends two requests if users or pages are present, to fetch all available info! :param thread_ids: One or more thread ID(s) to query :return: :class:`models.Thread` objects...
python
def fetchThreadInfo(self, *thread_ids): """ Get threads' info from IDs, unordered .. warning:: Sends two requests if users or pages are present, to fetch all available info! :param thread_ids: One or more thread ID(s) to query :return: :class:`models.Thread` objects...
[ "def", "fetchThreadInfo", "(", "self", ",", "*", "thread_ids", ")", ":", "queries", "=", "[", "]", "for", "thread_id", "in", "thread_ids", ":", "params", "=", "{", "\"id\"", ":", "thread_id", ",", "\"message_limit\"", ":", "0", ",", "\"load_messages\"", ":...
Get threads' info from IDs, unordered .. warning:: Sends two requests if users or pages are present, to fetch all available info! :param thread_ids: One or more thread ID(s) to query :return: :class:`models.Thread` objects, labeled by their ID :rtype: dict :raises: ...
[ "Get", "threads", "info", "from", "IDs", "unordered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L941-L1003
220,304
carpedm20/fbchat
fbchat/_client.py
Client.fetchThreadMessages
def fetchThreadMessages(self, thread_id=None, limit=20, before=None): """ Get the last messages in a thread :param thread_id: User/Group ID to get messages from. See :ref:`intro_threads` :param limit: Max. number of messages to retrieve :param before: A timestamp, indicating fro...
python
def fetchThreadMessages(self, thread_id=None, limit=20, before=None): """ Get the last messages in a thread :param thread_id: User/Group ID to get messages from. See :ref:`intro_threads` :param limit: Max. number of messages to retrieve :param before: A timestamp, indicating fro...
[ "def", "fetchThreadMessages", "(", "self", ",", "thread_id", "=", "None", ",", "limit", "=", "20", ",", "before", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "params", "=", ...
Get the last messages in a thread :param thread_id: User/Group ID to get messages from. See :ref:`intro_threads` :param limit: Max. number of messages to retrieve :param before: A timestamp, indicating from which point to retrieve messages :type limit: int :type before: int ...
[ "Get", "the", "last", "messages", "in", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1005-L1045
220,305
carpedm20/fbchat
fbchat/_client.py
Client.fetchThreadList
def fetchThreadList( self, offset=None, limit=20, thread_location=ThreadLocation.INBOX, before=None ): """Get thread list of your facebook account :param offset: Deprecated. Do not use! :param limit: Max. number of threads to retrieve. Capped at 20 :param thread_location: mo...
python
def fetchThreadList( self, offset=None, limit=20, thread_location=ThreadLocation.INBOX, before=None ): """Get thread list of your facebook account :param offset: Deprecated. Do not use! :param limit: Max. number of threads to retrieve. Capped at 20 :param thread_location: mo...
[ "def", "fetchThreadList", "(", "self", ",", "offset", "=", "None", ",", "limit", "=", "20", ",", "thread_location", "=", "ThreadLocation", ".", "INBOX", ",", "before", "=", "None", ")", ":", "if", "offset", "is", "not", "None", ":", "log", ".", "warnin...
Get thread list of your facebook account :param offset: Deprecated. Do not use! :param limit: Max. number of threads to retrieve. Capped at 20 :param thread_location: models.ThreadLocation: INBOX, PENDING, ARCHIVED or OTHER :param before: A timestamp (in milliseconds), indicating from w...
[ "Get", "thread", "list", "of", "your", "facebook", "account" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1047-L1097
220,306
carpedm20/fbchat
fbchat/_client.py
Client.fetchUnread
def fetchUnread(self): """ Get the unread thread list :return: List of unread thread ids :rtype: list :raises: FBchatException if request failed """ form = { "folders[0]": "inbox", "client": "mercury", "last_action_timestamp": ...
python
def fetchUnread(self): """ Get the unread thread list :return: List of unread thread ids :rtype: list :raises: FBchatException if request failed """ form = { "folders[0]": "inbox", "client": "mercury", "last_action_timestamp": ...
[ "def", "fetchUnread", "(", "self", ")", ":", "form", "=", "{", "\"folders[0]\"", ":", "\"inbox\"", ",", "\"client\"", ":", "\"mercury\"", ",", "\"last_action_timestamp\"", ":", "now", "(", ")", "-", "60", "*", "1000", "# 'last_action_timestamp': 0", "}", "j", ...
Get the unread thread list :return: List of unread thread ids :rtype: list :raises: FBchatException if request failed
[ "Get", "the", "unread", "thread", "list" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1099-L1118
220,307
carpedm20/fbchat
fbchat/_client.py
Client.fetchImageUrl
def fetchImageUrl(self, image_id): """Fetches the url to the original image from an image attachment ID :param image_id: The image you want to fethc :type image_id: str :return: An url where you can download the original image :rtype: str :raises: FBchatException if requ...
python
def fetchImageUrl(self, image_id): """Fetches the url to the original image from an image attachment ID :param image_id: The image you want to fethc :type image_id: str :return: An url where you can download the original image :rtype: str :raises: FBchatException if requ...
[ "def", "fetchImageUrl", "(", "self", ",", "image_id", ")", ":", "image_id", "=", "str", "(", "image_id", ")", "data", "=", "{", "\"photo_id\"", ":", "str", "(", "image_id", ")", "}", "j", "=", "self", ".", "_get", "(", "ReqUrl", ".", "ATTACHMENT_PHOTO"...
Fetches the url to the original image from an image attachment ID :param image_id: The image you want to fethc :type image_id: str :return: An url where you can download the original image :rtype: str :raises: FBchatException if request failed
[ "Fetches", "the", "url", "to", "the", "original", "image", "from", "an", "image", "attachment", "ID" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1135-L1153
220,308
carpedm20/fbchat
fbchat/_client.py
Client._getSendData
def _getSendData(self, message=None, thread_id=None, thread_type=ThreadType.USER): """Returns the data needed to send a request to `SendURL`""" messageAndOTID = generateOfflineThreadingID() timestamp = now() data = { "client": "mercury", "author": "fbid:{}".format...
python
def _getSendData(self, message=None, thread_id=None, thread_type=ThreadType.USER): """Returns the data needed to send a request to `SendURL`""" messageAndOTID = generateOfflineThreadingID() timestamp = now() data = { "client": "mercury", "author": "fbid:{}".format...
[ "def", "_getSendData", "(", "self", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "messageAndOTID", "=", "generateOfflineThreadingID", "(", ")", "timestamp", "=", "now", "(", ")", ...
Returns the data needed to send a request to `SendURL`
[ "Returns", "the", "data", "needed", "to", "send", "a", "request", "to", "SendURL" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1247-L1314
220,309
carpedm20/fbchat
fbchat/_client.py
Client._doSendRequest
def _doSendRequest(self, data, get_thread_id=False): """Sends the data to `SendURL`, and returns the message ID or None on failure""" j = self._post(self.req_url.SEND, data, fix_request=True, as_json=True) # update JS token if received in response fb_dtsg = get_jsmods_require(j, 2) ...
python
def _doSendRequest(self, data, get_thread_id=False): """Sends the data to `SendURL`, and returns the message ID or None on failure""" j = self._post(self.req_url.SEND, data, fix_request=True, as_json=True) # update JS token if received in response fb_dtsg = get_jsmods_require(j, 2) ...
[ "def", "_doSendRequest", "(", "self", ",", "data", ",", "get_thread_id", "=", "False", ")", ":", "j", "=", "self", ".", "_post", "(", "self", ".", "req_url", ".", "SEND", ",", "data", ",", "fix_request", "=", "True", ",", "as_json", "=", "True", ")",...
Sends the data to `SendURL`, and returns the message ID or None on failure
[ "Sends", "the", "data", "to", "SendURL", "and", "returns", "the", "message", "ID", "or", "None", "on", "failure" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1316-L1341
220,310
carpedm20/fbchat
fbchat/_client.py
Client.send
def send(self, message, thread_id=None, thread_type=ThreadType.USER): """ Sends a message to a thread :param message: Message to send :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type message: models.M...
python
def send(self, message, thread_id=None, thread_type=ThreadType.USER): """ Sends a message to a thread :param message: Message to send :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type message: models.M...
[ "def", "send", "(", "self", ",", "message", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "thread_type", ")", "data", "...
Sends a message to a thread :param message: Message to send :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type message: models.Message :type thread_type: models.ThreadType :return: :ref:`Message ID <int...
[ "Sends", "a", "message", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1343-L1359
220,311
carpedm20/fbchat
fbchat/_client.py
Client.wave
def wave(self, wave_first=True, thread_id=None, thread_type=None): """ Says hello with a wave to a thread! :param wave_first: Whether to wave first or wave back :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` ...
python
def wave(self, wave_first=True, thread_id=None, thread_type=None): """ Says hello with a wave to a thread! :param wave_first: Whether to wave first or wave back :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` ...
[ "def", "wave", "(", "self", ",", "wave_first", "=", "True", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "thread_type", ")", "data", "=",...
Says hello with a wave to a thread! :param wave_first: Whether to wave first or wave back :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models.ThreadType :return: :ref:`Message ID <intro_messa...
[ "Says", "hello", "with", "a", "wave", "to", "a", "thread!" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1385-L1405
220,312
carpedm20/fbchat
fbchat/_client.py
Client.quickReply
def quickReply(self, quick_reply, payload=None, thread_id=None, thread_type=None): """ Replies to a chosen quick reply :param quick_reply: Quick reply to reply to :param payload: Optional answer to the quick reply :param thread_id: User/Group ID to send to. See :ref:`intro_threa...
python
def quickReply(self, quick_reply, payload=None, thread_id=None, thread_type=None): """ Replies to a chosen quick reply :param quick_reply: Quick reply to reply to :param payload: Optional answer to the quick reply :param thread_id: User/Group ID to send to. See :ref:`intro_threa...
[ "def", "quickReply", "(", "self", ",", "quick_reply", ",", "payload", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ")", ":", "quick_reply", ".", "is_response", "=", "True", "if", "isinstance", "(", "quick_reply", ",", "Quick...
Replies to a chosen quick reply :param quick_reply: Quick reply to reply to :param payload: Optional answer to the quick reply :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type quick_reply: models.QuickReply ...
[ "Replies", "to", "a", "chosen", "quick", "reply" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1407-L1444
220,313
carpedm20/fbchat
fbchat/_client.py
Client.sendLocation
def sendLocation(self, location, message=None, thread_id=None, thread_type=None): """ Sends a given location to a thread as the user's current location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intr...
python
def sendLocation(self, location, message=None, thread_id=None, thread_type=None): """ Sends a given location to a thread as the user's current location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intr...
[ "def", "sendLocation", "(", "self", ",", "location", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ")", ":", "self", ".", "_sendLocation", "(", "location", "=", "location", ",", "current", "=", "True", ",", ...
Sends a given location to a thread as the user's current location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type location: models.Locatio...
[ "Sends", "a", "given", "location", "to", "a", "thread", "as", "the", "user", "s", "current", "location" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1469-L1489
220,314
carpedm20/fbchat
fbchat/_client.py
Client.sendPinnedLocation
def sendPinnedLocation( self, location, message=None, thread_id=None, thread_type=None ): """ Sends a given location to a thread as a pinned location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See ...
python
def sendPinnedLocation( self, location, message=None, thread_id=None, thread_type=None ): """ Sends a given location to a thread as a pinned location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See ...
[ "def", "sendPinnedLocation", "(", "self", ",", "location", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ")", ":", "self", ".", "_sendLocation", "(", "location", "=", "location", ",", "current", "=", "False", ...
Sends a given location to a thread as a pinned location :param location: Location to send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type location: models.LocationAttachmen...
[ "Sends", "a", "given", "location", "to", "a", "thread", "as", "a", "pinned", "location" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1491-L1513
220,315
carpedm20/fbchat
fbchat/_client.py
Client._upload
def _upload(self, files, voice_clip=False): """ Uploads files to Facebook `files` should be a list of files that requests can upload, see: http://docs.python-requests.org/en/master/api/#requests.request Returns a list of tuples with a file's ID and mimetype """ ...
python
def _upload(self, files, voice_clip=False): """ Uploads files to Facebook `files` should be a list of files that requests can upload, see: http://docs.python-requests.org/en/master/api/#requests.request Returns a list of tuples with a file's ID and mimetype """ ...
[ "def", "_upload", "(", "self", ",", "files", ",", "voice_clip", "=", "False", ")", ":", "file_dict", "=", "{", "\"upload_{}\"", ".", "format", "(", "i", ")", ":", "f", "for", "i", ",", "f", "in", "enumerate", "(", "files", ")", "}", "data", "=", ...
Uploads files to Facebook `files` should be a list of files that requests can upload, see: http://docs.python-requests.org/en/master/api/#requests.request Returns a list of tuples with a file's ID and mimetype
[ "Uploads", "files", "to", "Facebook" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1515-L1544
220,316
carpedm20/fbchat
fbchat/_client.py
Client._sendFiles
def _sendFiles( self, files, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends files from file IDs to a thread `files` should be a list of tuples, with a file's ID and mimetype """ thread_id, thread_type = self._getThread(thread_id, thread_type) ...
python
def _sendFiles( self, files, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends files from file IDs to a thread `files` should be a list of tuples, with a file's ID and mimetype """ thread_id, thread_type = self._getThread(thread_id, thread_type) ...
[ "def", "_sendFiles", "(", "self", ",", "files", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", "...
Sends files from file IDs to a thread `files` should be a list of tuples, with a file's ID and mimetype
[ "Sends", "files", "from", "file", "IDs", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1546-L1567
220,317
carpedm20/fbchat
fbchat/_client.py
Client.sendRemoteFiles
def sendRemoteFiles( self, file_urls, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends files from URLs to a thread :param file_urls: URLs of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. ...
python
def sendRemoteFiles( self, file_urls, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends files from URLs to a thread :param file_urls: URLs of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. ...
[ "def", "sendRemoteFiles", "(", "self", ",", "file_urls", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "file_urls", "=", "require_list", "(", "file_urls", ")", "files", "=", "self"...
Sends files from URLs to a thread :param file_urls: URLs of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models.ThreadType ...
[ "Sends", "files", "from", "URLs", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1569-L1587
220,318
carpedm20/fbchat
fbchat/_client.py
Client.sendLocalFiles
def sendLocalFiles( self, file_paths, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends local files to a thread :param file_paths: Paths of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. Se...
python
def sendLocalFiles( self, file_paths, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends local files to a thread :param file_paths: Paths of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. Se...
[ "def", "sendLocalFiles", "(", "self", ",", "file_paths", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "file_paths", "=", "require_list", "(", "file_paths", ")", "with", "get_files_f...
Sends local files to a thread :param file_paths: Paths of files to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models.ThreadType :r...
[ "Sends", "local", "files", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1589-L1608
220,319
carpedm20/fbchat
fbchat/_client.py
Client.sendRemoteVoiceClips
def sendRemoteVoiceClips( self, clip_urls, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends voice clips from URLs to a thread :param clip_urls: URLs of clips to upload and send :param message: Additional message :param thread_id: User/Group ID t...
python
def sendRemoteVoiceClips( self, clip_urls, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends voice clips from URLs to a thread :param clip_urls: URLs of clips to upload and send :param message: Additional message :param thread_id: User/Group ID t...
[ "def", "sendRemoteVoiceClips", "(", "self", ",", "clip_urls", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "clip_urls", "=", "require_list", "(", "clip_urls", ")", "files", "=", "...
Sends voice clips from URLs to a thread :param clip_urls: URLs of clips to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models.ThreadType ...
[ "Sends", "voice", "clips", "from", "URLs", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1610-L1628
220,320
carpedm20/fbchat
fbchat/_client.py
Client.sendLocalVoiceClips
def sendLocalVoiceClips( self, clip_paths, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends local voice clips to a thread :param clip_paths: Paths of clips to upload and send :param message: Additional message :param thread_id: User/Group ID to ...
python
def sendLocalVoiceClips( self, clip_paths, message=None, thread_id=None, thread_type=ThreadType.USER ): """ Sends local voice clips to a thread :param clip_paths: Paths of clips to upload and send :param message: Additional message :param thread_id: User/Group ID to ...
[ "def", "sendLocalVoiceClips", "(", "self", ",", "clip_paths", ",", "message", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "clip_paths", "=", "require_list", "(", "clip_paths", ")", "with", "get_fi...
Sends local voice clips to a thread :param clip_paths: Paths of clips to upload and send :param message: Additional message :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models.ThreadType ...
[ "Sends", "local", "voice", "clips", "to", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1630-L1649
220,321
carpedm20/fbchat
fbchat/_client.py
Client.forwardAttachment
def forwardAttachment(self, attachment_id, thread_id=None): """ Forwards an attachment :param attachment_id: Attachment ID to forward :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :raises: FBchatException if request failed """ thread_id, th...
python
def forwardAttachment(self, attachment_id, thread_id=None): """ Forwards an attachment :param attachment_id: Attachment ID to forward :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :raises: FBchatException if request failed """ thread_id, th...
[ "def", "forwardAttachment", "(", "self", ",", "attachment_id", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"attachment_id\"", ":", "attachme...
Forwards an attachment :param attachment_id: Attachment ID to forward :param thread_id: User/Group ID to send to. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Forwards", "an", "attachment" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1699-L1714
220,322
carpedm20/fbchat
fbchat/_client.py
Client.createGroup
def createGroup(self, message, user_ids): """ Creates a group with the given ids :param message: The initial message :param user_ids: A list of users to create the group with. :return: ID of the new group :raises: FBchatException if request failed """ dat...
python
def createGroup(self, message, user_ids): """ Creates a group with the given ids :param message: The initial message :param user_ids: A list of users to create the group with. :return: ID of the new group :raises: FBchatException if request failed """ dat...
[ "def", "createGroup", "(", "self", ",", "message", ",", "user_ids", ")", ":", "data", "=", "self", ".", "_getSendData", "(", "message", "=", "self", ".", "_oldMessage", "(", "message", ")", ")", "if", "len", "(", "user_ids", ")", "<", "2", ":", "rais...
Creates a group with the given ids :param message: The initial message :param user_ids: A list of users to create the group with. :return: ID of the new group :raises: FBchatException if request failed
[ "Creates", "a", "group", "with", "the", "given", "ids" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1716-L1738
220,323
carpedm20/fbchat
fbchat/_client.py
Client.addUsersToGroup
def addUsersToGroup(self, user_ids, thread_id=None): """ Adds users to a group. :param user_ids: One or more user IDs to add :param thread_id: Group ID to add people to. See :ref:`intro_threads` :type user_ids: list :raises: FBchatException if request failed """ ...
python
def addUsersToGroup(self, user_ids, thread_id=None): """ Adds users to a group. :param user_ids: One or more user IDs to add :param thread_id: Group ID to add people to. See :ref:`intro_threads` :type user_ids: list :raises: FBchatException if request failed """ ...
[ "def", "addUsersToGroup", "(", "self", ",", "user_ids", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "self", ".", "_getSendData", "(", "thread_id"...
Adds users to a group. :param user_ids: One or more user IDs to add :param thread_id: Group ID to add people to. See :ref:`intro_threads` :type user_ids: list :raises: FBchatException if request failed
[ "Adds", "users", "to", "a", "group", "." ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1740-L1767
220,324
carpedm20/fbchat
fbchat/_client.py
Client.removeUserFromGroup
def removeUserFromGroup(self, user_id, thread_id=None): """ Removes users from a group. :param user_id: User ID to remove :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed """ thread_id, thread_t...
python
def removeUserFromGroup(self, user_id, thread_id=None): """ Removes users from a group. :param user_id: User ID to remove :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed """ thread_id, thread_t...
[ "def", "removeUserFromGroup", "(", "self", ",", "user_id", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"uid\"", ":", "user_id", ",", "\"...
Removes users from a group. :param user_id: User ID to remove :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Removes", "users", "from", "a", "group", "." ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1769-L1780
220,325
carpedm20/fbchat
fbchat/_client.py
Client.changeGroupApprovalMode
def changeGroupApprovalMode(self, require_admin_approval, thread_id=None): """ Changes group's approval mode :param require_admin_approval: True or False :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed ...
python
def changeGroupApprovalMode(self, require_admin_approval, thread_id=None): """ Changes group's approval mode :param require_admin_approval: True or False :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed ...
[ "def", "changeGroupApprovalMode", "(", "self", ",", "require_admin_approval", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"set_mode\"", ":", ...
Changes group's approval mode :param require_admin_approval: True or False :param thread_id: Group ID to remove people from. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Changes", "group", "s", "approval", "mode" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1814-L1825
220,326
carpedm20/fbchat
fbchat/_client.py
Client._changeGroupImage
def _changeGroupImage(self, image_id, thread_id=None): """ Changes a thread image from an image id :param image_id: ID of uploaded image :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed """ threa...
python
def _changeGroupImage(self, image_id, thread_id=None): """ Changes a thread image from an image id :param image_id: ID of uploaded image :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed """ threa...
[ "def", "_changeGroupImage", "(", "self", ",", "image_id", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"thread_image_id\"", ":", "image_id", ...
Changes a thread image from an image id :param image_id: ID of uploaded image :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Changes", "a", "thread", "image", "from", "an", "image", "id" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1864-L1877
220,327
carpedm20/fbchat
fbchat/_client.py
Client.changeGroupImageRemote
def changeGroupImageRemote(self, image_url, thread_id=None): """ Changes a thread image from a URL :param image_url: URL of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed ...
python
def changeGroupImageRemote(self, image_url, thread_id=None): """ Changes a thread image from a URL :param image_url: URL of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed ...
[ "def", "changeGroupImageRemote", "(", "self", ",", "image_url", ",", "thread_id", "=", "None", ")", ":", "(", "image_id", ",", "mimetype", ")", ",", "=", "self", ".", "_upload", "(", "get_files_from_urls", "(", "[", "image_url", "]", ")", ")", "return", ...
Changes a thread image from a URL :param image_url: URL of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Changes", "a", "thread", "image", "from", "a", "URL" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1879-L1888
220,328
carpedm20/fbchat
fbchat/_client.py
Client.changeGroupImageLocal
def changeGroupImageLocal(self, image_path, thread_id=None): """ Changes a thread image from a local path :param image_path: Path of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed...
python
def changeGroupImageLocal(self, image_path, thread_id=None): """ Changes a thread image from a local path :param image_path: Path of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed...
[ "def", "changeGroupImageLocal", "(", "self", ",", "image_path", ",", "thread_id", "=", "None", ")", ":", "with", "get_files_from_paths", "(", "[", "image_path", "]", ")", "as", "files", ":", "(", "image_id", ",", "mimetype", ")", ",", "=", "self", ".", "...
Changes a thread image from a local path :param image_path: Path of an image to upload and change :param thread_id: User/Group ID to change image. See :ref:`intro_threads` :raises: FBchatException if request failed
[ "Changes", "a", "thread", "image", "from", "a", "local", "path" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1890-L1901
220,329
carpedm20/fbchat
fbchat/_client.py
Client.changeThreadTitle
def changeThreadTitle(self, title, thread_id=None, thread_type=ThreadType.USER): """ Changes title of a thread. If this is executed on a user thread, this will change the nickname of that user, effectively changing the title :param title: New group thread title :param thread_id:...
python
def changeThreadTitle(self, title, thread_id=None, thread_type=ThreadType.USER): """ Changes title of a thread. If this is executed on a user thread, this will change the nickname of that user, effectively changing the title :param title: New group thread title :param thread_id:...
[ "def", "changeThreadTitle", "(", "self", ",", "title", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "thread_type", ")", ...
Changes title of a thread. If this is executed on a user thread, this will change the nickname of that user, effectively changing the title :param title: New group thread title :param thread_id: Group ID to change title of. See :ref:`intro_threads` :param thread_type: See :ref:`intro_th...
[ "Changes", "title", "of", "a", "thread", ".", "If", "this", "is", "executed", "on", "a", "user", "thread", "this", "will", "change", "the", "nickname", "of", "that", "user", "effectively", "changing", "the", "title" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1903-L1923
220,330
carpedm20/fbchat
fbchat/_client.py
Client.changeNickname
def changeNickname( self, nickname, user_id, thread_id=None, thread_type=ThreadType.USER ): """ Changes the nickname of a user in a thread :param nickname: New nickname :param user_id: User that will have their nickname changed :param thread_id: User/Group ID to chan...
python
def changeNickname( self, nickname, user_id, thread_id=None, thread_type=ThreadType.USER ): """ Changes the nickname of a user in a thread :param nickname: New nickname :param user_id: User that will have their nickname changed :param thread_id: User/Group ID to chan...
[ "def", "changeNickname", "(", "self", ",", "nickname", ",", "user_id", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "thr...
Changes the nickname of a user in a thread :param nickname: New nickname :param user_id: User that will have their nickname changed :param thread_id: User/Group ID to change color of. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type thread_type: models...
[ "Changes", "the", "nickname", "of", "a", "user", "in", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1925-L1947
220,331
carpedm20/fbchat
fbchat/_client.py
Client.reactToMessage
def reactToMessage(self, message_id, reaction): """ Reacts to a message, or removes reaction :param message_id: :ref:`Message ID <intro_message_ids>` to react to :param reaction: Reaction emoji to use, if None removes reaction :type reaction: models.MessageReaction or None ...
python
def reactToMessage(self, message_id, reaction): """ Reacts to a message, or removes reaction :param message_id: :ref:`Message ID <intro_message_ids>` to react to :param reaction: Reaction emoji to use, if None removes reaction :type reaction: models.MessageReaction or None ...
[ "def", "reactToMessage", "(", "self", ",", "message_id", ",", "reaction", ")", ":", "data", "=", "{", "\"action\"", ":", "\"ADD_REACTION\"", "if", "reaction", "else", "\"REMOVE_REACTION\"", ",", "\"client_mutation_id\"", ":", "\"1\"", ",", "\"actor_id\"", ":", "...
Reacts to a message, or removes reaction :param message_id: :ref:`Message ID <intro_message_ids>` to react to :param reaction: Reaction emoji to use, if None removes reaction :type reaction: models.MessageReaction or None :raises: FBchatException if request failed
[ "Reacts", "to", "a", "message", "or", "removes", "reaction" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L1981-L1998
220,332
carpedm20/fbchat
fbchat/_client.py
Client.createPlan
def createPlan(self, plan, thread_id=None): """ Sets a plan :param plan: Plan to set :param thread_id: User/Group ID to send plan to. See :ref:`intro_threads` :type plan: models.Plan :raises: FBchatException if request failed """ thread_id, thread_type = ...
python
def createPlan(self, plan, thread_id=None): """ Sets a plan :param plan: Plan to set :param thread_id: User/Group ID to send plan to. See :ref:`intro_threads` :type plan: models.Plan :raises: FBchatException if request failed """ thread_id, thread_type = ...
[ "def", "createPlan", "(", "self", ",", "plan", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"event_type\"", ":", "\"EVENT\"", ",", "\"eve...
Sets a plan :param plan: Plan to set :param thread_id: User/Group ID to send plan to. See :ref:`intro_threads` :type plan: models.Plan :raises: FBchatException if request failed
[ "Sets", "a", "plan" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2000-L2020
220,333
carpedm20/fbchat
fbchat/_client.py
Client.editPlan
def editPlan(self, plan, new_plan): """ Edits a plan :param plan: Plan to edit :param new_plan: New plan :type plan: models.Plan :raises: FBchatException if request failed """ data = { "event_reminder_id": plan.uid, "delete": "fals...
python
def editPlan(self, plan, new_plan): """ Edits a plan :param plan: Plan to edit :param new_plan: New plan :type plan: models.Plan :raises: FBchatException if request failed """ data = { "event_reminder_id": plan.uid, "delete": "fals...
[ "def", "editPlan", "(", "self", ",", "plan", ",", "new_plan", ")", ":", "data", "=", "{", "\"event_reminder_id\"", ":", "plan", ".", "uid", ",", "\"delete\"", ":", "\"false\"", ",", "\"date\"", ":", "new_plan", ".", "time", ",", "\"location_name\"", ":", ...
Edits a plan :param plan: Plan to edit :param new_plan: New plan :type plan: models.Plan :raises: FBchatException if request failed
[ "Edits", "a", "plan" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2022-L2040
220,334
carpedm20/fbchat
fbchat/_client.py
Client.deletePlan
def deletePlan(self, plan): """ Deletes a plan :param plan: Plan to delete :raises: FBchatException if request failed """ data = {"event_reminder_id": plan.uid, "delete": "true", "acontext": ACONTEXT} j = self._post(self.req_url.PLAN_CHANGE, data, fix_request=Tru...
python
def deletePlan(self, plan): """ Deletes a plan :param plan: Plan to delete :raises: FBchatException if request failed """ data = {"event_reminder_id": plan.uid, "delete": "true", "acontext": ACONTEXT} j = self._post(self.req_url.PLAN_CHANGE, data, fix_request=Tru...
[ "def", "deletePlan", "(", "self", ",", "plan", ")", ":", "data", "=", "{", "\"event_reminder_id\"", ":", "plan", ".", "uid", ",", "\"delete\"", ":", "\"true\"", ",", "\"acontext\"", ":", "ACONTEXT", "}", "j", "=", "self", ".", "_post", "(", "self", "."...
Deletes a plan :param plan: Plan to delete :raises: FBchatException if request failed
[ "Deletes", "a", "plan" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2042-L2050
220,335
carpedm20/fbchat
fbchat/_client.py
Client.changePlanParticipation
def changePlanParticipation(self, plan, take_part=True): """ Changes participation in a plan :param plan: Plan to take part in or not :param take_part: Whether to take part in the plan :raises: FBchatException if request failed """ data = { "event_rem...
python
def changePlanParticipation(self, plan, take_part=True): """ Changes participation in a plan :param plan: Plan to take part in or not :param take_part: Whether to take part in the plan :raises: FBchatException if request failed """ data = { "event_rem...
[ "def", "changePlanParticipation", "(", "self", ",", "plan", ",", "take_part", "=", "True", ")", ":", "data", "=", "{", "\"event_reminder_id\"", ":", "plan", ".", "uid", ",", "\"guest_state\"", ":", "\"GOING\"", "if", "take_part", "else", "\"DECLINED\"", ",", ...
Changes participation in a plan :param plan: Plan to take part in or not :param take_part: Whether to take part in the plan :raises: FBchatException if request failed
[ "Changes", "participation", "in", "a", "plan" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2052-L2067
220,336
carpedm20/fbchat
fbchat/_client.py
Client.createPoll
def createPoll(self, poll, thread_id=None): """ Creates poll in a group thread :param poll: Poll to create :param thread_id: User/Group ID to create poll in. See :ref:`intro_threads` :type poll: models.Poll :raises: FBchatException if request failed """ t...
python
def createPoll(self, poll, thread_id=None): """ Creates poll in a group thread :param poll: Poll to create :param thread_id: User/Group ID to create poll in. See :ref:`intro_threads` :type poll: models.Poll :raises: FBchatException if request failed """ t...
[ "def", "createPoll", "(", "self", ",", "poll", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "# We're using ordered dicts, because the Facebook endpoint that parses the POS...
Creates poll in a group thread :param poll: Poll to create :param thread_id: User/Group ID to create poll in. See :ref:`intro_threads` :type poll: models.Poll :raises: FBchatException if request failed
[ "Creates", "poll", "in", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2076-L2100
220,337
carpedm20/fbchat
fbchat/_client.py
Client.updatePollVote
def updatePollVote(self, poll_id, option_ids=[], new_options=[]): """ Updates a poll vote :param poll_id: ID of the poll to update vote :param option_ids: List of the option IDs to vote :param new_options: List of the new option names :param thread_id: User/Group ID to c...
python
def updatePollVote(self, poll_id, option_ids=[], new_options=[]): """ Updates a poll vote :param poll_id: ID of the poll to update vote :param option_ids: List of the option IDs to vote :param new_options: List of the new option names :param thread_id: User/Group ID to c...
[ "def", "updatePollVote", "(", "self", ",", "poll_id", ",", "option_ids", "=", "[", "]", ",", "new_options", "=", "[", "]", ")", ":", "data", "=", "{", "\"question_id\"", ":", "poll_id", "}", "for", "i", ",", "option_id", "in", "enumerate", "(", "option...
Updates a poll vote :param poll_id: ID of the poll to update vote :param option_ids: List of the option IDs to vote :param new_options: List of the new option names :param thread_id: User/Group ID to change status in. See :ref:`intro_threads` :param thread_type: See :ref:`intro_...
[ "Updates", "a", "poll", "vote" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2102-L2122
220,338
carpedm20/fbchat
fbchat/_client.py
Client.setTypingStatus
def setTypingStatus(self, status, thread_id=None, thread_type=None): """ Sets users typing status in a thread :param status: Specify the typing status :param thread_id: User/Group ID to change status in. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` ...
python
def setTypingStatus(self, status, thread_id=None, thread_type=None): """ Sets users typing status in a thread :param status: Specify the typing status :param thread_id: User/Group ID to change status in. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` ...
[ "def", "setTypingStatus", "(", "self", ",", "status", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "thread_type", ")", "data", "=", "{", ...
Sets users typing status in a thread :param status: Specify the typing status :param thread_id: User/Group ID to change status in. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type status: models.TypingStatus :type thread_type: models.ThreadType ...
[ "Sets", "users", "typing", "status", "in", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2124-L2143
220,339
carpedm20/fbchat
fbchat/_client.py
Client.markAsDelivered
def markAsDelivered(self, thread_id, message_id): """ Mark a message as delivered :param thread_id: User/Group ID to which the message belongs. See :ref:`intro_threads` :param message_id: Message ID to set as delivered. See :ref:`intro_threads` :return: Whether the request was s...
python
def markAsDelivered(self, thread_id, message_id): """ Mark a message as delivered :param thread_id: User/Group ID to which the message belongs. See :ref:`intro_threads` :param message_id: Message ID to set as delivered. See :ref:`intro_threads` :return: Whether the request was s...
[ "def", "markAsDelivered", "(", "self", ",", "thread_id", ",", "message_id", ")", ":", "data", "=", "{", "\"message_ids[0]\"", ":", "message_id", ",", "\"thread_ids[%s][0]\"", "%", "thread_id", ":", "message_id", ",", "}", "r", "=", "self", ".", "_post", "(",...
Mark a message as delivered :param thread_id: User/Group ID to which the message belongs. See :ref:`intro_threads` :param message_id: Message ID to set as delivered. See :ref:`intro_threads` :return: Whether the request was successful :raises: FBchatException if request failed
[ "Mark", "a", "message", "as", "delivered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2149-L2164
220,340
carpedm20/fbchat
fbchat/_client.py
Client.removeFriend
def removeFriend(self, friend_id=None): """ Removes a specifed friend from your friend list :param friend_id: The ID of the friend that you want to remove :return: Returns error if the removing was unsuccessful, returns True when successful. """ payload = {"friend_id": f...
python
def removeFriend(self, friend_id=None): """ Removes a specifed friend from your friend list :param friend_id: The ID of the friend that you want to remove :return: Returns error if the removing was unsuccessful, returns True when successful. """ payload = {"friend_id": f...
[ "def", "removeFriend", "(", "self", ",", "friend_id", "=", "None", ")", ":", "payload", "=", "{", "\"friend_id\"", ":", "friend_id", ",", "\"unref\"", ":", "\"none\"", ",", "\"confirm\"", ":", "\"Confirm\"", "}", "r", "=", "self", ".", "_post", "(", "sel...
Removes a specifed friend from your friend list :param friend_id: The ID of the friend that you want to remove :return: Returns error if the removing was unsuccessful, returns True when successful.
[ "Removes", "a", "specifed", "friend", "from", "your", "friend", "list" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2217-L2232
220,341
carpedm20/fbchat
fbchat/_client.py
Client.blockUser
def blockUser(self, user_id): """ Blocks messages from a specifed user :param user_id: The ID of the user that you want to block :return: Whether the request was successful :raises: FBchatException if request failed """ data = {"fbid": user_id} r = self._...
python
def blockUser(self, user_id): """ Blocks messages from a specifed user :param user_id: The ID of the user that you want to block :return: Whether the request was successful :raises: FBchatException if request failed """ data = {"fbid": user_id} r = self._...
[ "def", "blockUser", "(", "self", ",", "user_id", ")", ":", "data", "=", "{", "\"fbid\"", ":", "user_id", "}", "r", "=", "self", ".", "_post", "(", "self", ".", "req_url", ".", "BLOCK_USER", ",", "data", ")", "return", "r", ".", "ok" ]
Blocks messages from a specifed user :param user_id: The ID of the user that you want to block :return: Whether the request was successful :raises: FBchatException if request failed
[ "Blocks", "messages", "from", "a", "specifed", "user" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2234-L2244
220,342
carpedm20/fbchat
fbchat/_client.py
Client.unblockUser
def unblockUser(self, user_id): """ Unblocks messages from a blocked user :param user_id: The ID of the user that you want to unblock :return: Whether the request was successful :raises: FBchatException if request failed """ data = {"fbid": user_id} r = s...
python
def unblockUser(self, user_id): """ Unblocks messages from a blocked user :param user_id: The ID of the user that you want to unblock :return: Whether the request was successful :raises: FBchatException if request failed """ data = {"fbid": user_id} r = s...
[ "def", "unblockUser", "(", "self", ",", "user_id", ")", ":", "data", "=", "{", "\"fbid\"", ":", "user_id", "}", "r", "=", "self", ".", "_post", "(", "self", ".", "req_url", ".", "UNBLOCK_USER", ",", "data", ")", "return", "r", ".", "ok" ]
Unblocks messages from a blocked user :param user_id: The ID of the user that you want to unblock :return: Whether the request was successful :raises: FBchatException if request failed
[ "Unblocks", "messages", "from", "a", "blocked", "user" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2246-L2256
220,343
carpedm20/fbchat
fbchat/_client.py
Client.moveThreads
def moveThreads(self, location, thread_ids): """ Moves threads to specifed location :param location: models.ThreadLocation: INBOX, PENDING, ARCHIVED or OTHER :param thread_ids: Thread IDs to move. See :ref:`intro_threads` :return: Whether the request was successful :rais...
python
def moveThreads(self, location, thread_ids): """ Moves threads to specifed location :param location: models.ThreadLocation: INBOX, PENDING, ARCHIVED or OTHER :param thread_ids: Thread IDs to move. See :ref:`intro_threads` :return: Whether the request was successful :rais...
[ "def", "moveThreads", "(", "self", ",", "location", ",", "thread_ids", ")", ":", "thread_ids", "=", "require_list", "(", "thread_ids", ")", "if", "location", "==", "ThreadLocation", ".", "PENDING", ":", "location", "=", "ThreadLocation", ".", "OTHER", "if", ...
Moves threads to specifed location :param location: models.ThreadLocation: INBOX, PENDING, ARCHIVED or OTHER :param thread_ids: Thread IDs to move. See :ref:`intro_threads` :return: Whether the request was successful :raises: FBchatException if request failed
[ "Moves", "threads", "to", "specifed", "location" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2258-L2286
220,344
carpedm20/fbchat
fbchat/_client.py
Client.markAsSpam
def markAsSpam(self, thread_id=None): """ Mark a thread as spam and delete it :param thread_id: User/Group ID to mark as spam. See :ref:`intro_threads` :return: Whether the request was successful :raises: FBchatException if request failed """ thread_id, thread_ty...
python
def markAsSpam(self, thread_id=None): """ Mark a thread as spam and delete it :param thread_id: User/Group ID to mark as spam. See :ref:`intro_threads` :return: Whether the request was successful :raises: FBchatException if request failed """ thread_id, thread_ty...
[ "def", "markAsSpam", "(", "self", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "r", "=", "self", ".", "_post", "(", "self", ".", "req_url", ".", "MARK_SPAM...
Mark a thread as spam and delete it :param thread_id: User/Group ID to mark as spam. See :ref:`intro_threads` :return: Whether the request was successful :raises: FBchatException if request failed
[ "Mark", "a", "thread", "as", "spam", "and", "delete", "it" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2307-L2317
220,345
carpedm20/fbchat
fbchat/_client.py
Client.deleteMessages
def deleteMessages(self, message_ids): """ Deletes specifed messages :param message_ids: Message IDs to delete :return: Whether the request was successful :raises: FBchatException if request failed """ message_ids = require_list(message_ids) data = dict()...
python
def deleteMessages(self, message_ids): """ Deletes specifed messages :param message_ids: Message IDs to delete :return: Whether the request was successful :raises: FBchatException if request failed """ message_ids = require_list(message_ids) data = dict()...
[ "def", "deleteMessages", "(", "self", ",", "message_ids", ")", ":", "message_ids", "=", "require_list", "(", "message_ids", ")", "data", "=", "dict", "(", ")", "for", "i", ",", "message_id", "in", "enumerate", "(", "message_ids", ")", ":", "data", "[", "...
Deletes specifed messages :param message_ids: Message IDs to delete :return: Whether the request was successful :raises: FBchatException if request failed
[ "Deletes", "specifed", "messages" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2319-L2332
220,346
carpedm20/fbchat
fbchat/_client.py
Client.muteThreadReactions
def muteThreadReactions(self, mute=True, thread_id=None): """ Mutes thread reactions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads` """ thread_id, thread_type = self._getThread(thread_id, None) ...
python
def muteThreadReactions(self, mute=True, thread_id=None): """ Mutes thread reactions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads` """ thread_id, thread_type = self._getThread(thread_id, None) ...
[ "def", "muteThreadReactions", "(", "self", ",", "mute", "=", "True", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"reactions_mute_mode\"", ...
Mutes thread reactions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads`
[ "Mutes", "thread", "reactions" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2353-L2362
220,347
carpedm20/fbchat
fbchat/_client.py
Client.muteThreadMentions
def muteThreadMentions(self, mute=True, thread_id=None): """ Mutes thread mentions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads` """ thread_id, thread_type = self._getThread(thread_id, None) ...
python
def muteThreadMentions(self, mute=True, thread_id=None): """ Mutes thread mentions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads` """ thread_id, thread_type = self._getThread(thread_id, None) ...
[ "def", "muteThreadMentions", "(", "self", ",", "mute", "=", "True", ",", "thread_id", "=", "None", ")", ":", "thread_id", ",", "thread_type", "=", "self", ".", "_getThread", "(", "thread_id", ",", "None", ")", "data", "=", "{", "\"mentions_mute_mode\"", ":...
Mutes thread mentions :param mute: Boolean. True to mute, False to unmute :param thread_id: User/Group ID to mute. See :ref:`intro_threads`
[ "Mutes", "thread", "mentions" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2372-L2381
220,348
carpedm20/fbchat
fbchat/_client.py
Client._pullMessage
def _pullMessage(self): """Call pull api with seq value to get message data.""" data = { "msgs_recv": 0, "sticky_token": self._sticky, "sticky_pool": self._pool, "clientid": self._client_id, "state": "active" if self._markAlive else "offline", ...
python
def _pullMessage(self): """Call pull api with seq value to get message data.""" data = { "msgs_recv": 0, "sticky_token": self._sticky, "sticky_pool": self._pool, "clientid": self._client_id, "state": "active" if self._markAlive else "offline", ...
[ "def", "_pullMessage", "(", "self", ")", ":", "data", "=", "{", "\"msgs_recv\"", ":", "0", ",", "\"sticky_token\"", ":", "self", ".", "_sticky", ",", "\"sticky_pool\"", ":", "self", ".", "_pool", ",", "\"clientid\"", ":", "self", ".", "_client_id", ",", ...
Call pull api with seq value to get message data.
[ "Call", "pull", "api", "with", "seq", "value", "to", "get", "message", "data", "." ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2409-L2418
220,349
carpedm20/fbchat
fbchat/_client.py
Client._parseMessage
def _parseMessage(self, content): """Get message and author name from content. May contain multiple messages in the content.""" self._seq = content.get("seq", "0") if "lb_info" in content: self._sticky = content["lb_info"]["sticky"] self._pool = content["lb_info"]["pool"...
python
def _parseMessage(self, content): """Get message and author name from content. May contain multiple messages in the content.""" self._seq = content.get("seq", "0") if "lb_info" in content: self._sticky = content["lb_info"]["sticky"] self._pool = content["lb_info"]["pool"...
[ "def", "_parseMessage", "(", "self", ",", "content", ")", ":", "self", ".", "_seq", "=", "content", ".", "get", "(", "\"seq\"", ",", "\"0\"", ")", "if", "\"lb_info\"", "in", "content", ":", "self", ".", "_sticky", "=", "content", "[", "\"lb_info\"", "]...
Get message and author name from content. May contain multiple messages in the content.
[ "Get", "message", "and", "author", "name", "from", "content", ".", "May", "contain", "multiple", "messages", "in", "the", "content", "." ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L2966-L3066
220,350
carpedm20/fbchat
fbchat/_client.py
Client.doOneListen
def doOneListen(self, markAlive=None): """ Does one cycle of the listening loop. This method is useful if you want to control fbchat from an external event loop .. warning:: `markAlive` parameter is deprecated now, use :func:`fbchat.Client.setActiveStatus` or `ma...
python
def doOneListen(self, markAlive=None): """ Does one cycle of the listening loop. This method is useful if you want to control fbchat from an external event loop .. warning:: `markAlive` parameter is deprecated now, use :func:`fbchat.Client.setActiveStatus` or `ma...
[ "def", "doOneListen", "(", "self", ",", "markAlive", "=", "None", ")", ":", "if", "markAlive", "is", "not", "None", ":", "self", ".", "_markAlive", "=", "markAlive", "try", ":", "if", "self", ".", "_markAlive", ":", "self", ".", "_ping", "(", ")", "c...
Does one cycle of the listening loop. This method is useful if you want to control fbchat from an external event loop .. warning:: `markAlive` parameter is deprecated now, use :func:`fbchat.Client.setActiveStatus` or `markAlive` parameter in :func:`fbchat.Client.listen` instead....
[ "Does", "one", "cycle", "of", "the", "listening", "loop", ".", "This", "method", "is", "useful", "if", "you", "want", "to", "control", "fbchat", "from", "an", "external", "event", "loop" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3076-L3113
220,351
carpedm20/fbchat
fbchat/_client.py
Client.listen
def listen(self, markAlive=None): """ Initializes and runs the listening loop continually :param markAlive: Whether this should ping the Facebook server each time the loop runs :type markAlive: bool """ if markAlive is not None: self.setActiveStatus(markAlive...
python
def listen(self, markAlive=None): """ Initializes and runs the listening loop continually :param markAlive: Whether this should ping the Facebook server each time the loop runs :type markAlive: bool """ if markAlive is not None: self.setActiveStatus(markAlive...
[ "def", "listen", "(", "self", ",", "markAlive", "=", "None", ")", ":", "if", "markAlive", "is", "not", "None", ":", "self", ".", "setActiveStatus", "(", "markAlive", ")", "self", ".", "startListening", "(", ")", "self", ".", "onListening", "(", ")", "w...
Initializes and runs the listening loop continually :param markAlive: Whether this should ping the Facebook server each time the loop runs :type markAlive: bool
[ "Initializes", "and", "runs", "the", "listening", "loop", "continually" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3120-L3136
220,352
carpedm20/fbchat
fbchat/_client.py
Client.onMessage
def onMessage( self, mid=None, author_id=None, message=None, message_object=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody se...
python
def onMessage( self, mid=None, author_id=None, message=None, message_object=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody se...
[ "def", "onMessage", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "message", "=", "None", ",", "message_object", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts", "=",...
Called when the client is listening, and somebody sends a message :param mid: The message ID :param author_id: The ID of the author :param message: (deprecated. Use `message_object.text` instead) :param message_object: The message (As a `Message` object) :param thread_id: Thread...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "sends", "a", "message" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3189-L3216
220,353
carpedm20/fbchat
fbchat/_client.py
Client.onColorChange
def onColorChange( self, mid=None, author_id=None, new_color=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes a thread's color ...
python
def onColorChange( self, mid=None, author_id=None, new_color=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes a thread's color ...
[ "def", "onColorChange", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "new_color", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts", "=", "None", ",", "metadata", "=",...
Called when the client is listening, and somebody changes a thread's color :param mid: The action ID :param author_id: The ID of the person who changed the color :param new_color: The new color :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :pa...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "a", "thread", "s", "color" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3218-L3247
220,354
carpedm20/fbchat
fbchat/_client.py
Client.onEmojiChange
def onEmojiChange( self, mid=None, author_id=None, new_emoji=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes a thread's emoji ...
python
def onEmojiChange( self, mid=None, author_id=None, new_emoji=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes a thread's emoji ...
[ "def", "onEmojiChange", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "new_emoji", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts", "=", "None", ",", "metadata", "=",...
Called when the client is listening, and somebody changes a thread's emoji :param mid: The action ID :param author_id: The ID of the person who changed the emoji :param new_emoji: The new emoji :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :pa...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "a", "thread", "s", "emoji" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3249-L3277
220,355
carpedm20/fbchat
fbchat/_client.py
Client.onTitleChange
def onTitleChange( self, mid=None, author_id=None, new_title=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes the title of a th...
python
def onTitleChange( self, mid=None, author_id=None, new_title=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody changes the title of a th...
[ "def", "onTitleChange", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "new_title", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts", "=", "None", ",", "metadata", "=",...
Called when the client is listening, and somebody changes the title of a thread :param mid: The action ID :param author_id: The ID of the person who changed the title :param new_title: The new title :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "the", "title", "of", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3279-L3307
220,356
carpedm20/fbchat
fbchat/_client.py
Client.onImageChange
def onImageChange( self, mid=None, author_id=None, new_image=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody changes the image of a thread :param m...
python
def onImageChange( self, mid=None, author_id=None, new_image=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody changes the image of a thread :param m...
[ "def", "onImageChange", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "new_image", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "GROUP", ",", "ts", "=", "None", ",", "msg", "=", "...
Called when the client is listening, and somebody changes the image of a thread :param mid: The action ID :param author_id: The ID of the person who changed the image :param new_image: The ID of the new image :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threa...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "the", "image", "of", "a", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3309-L3331
220,357
carpedm20/fbchat
fbchat/_client.py
Client.onNicknameChange
def onNicknameChange( self, mid=None, author_id=None, changed_for=None, new_nickname=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and so...
python
def onNicknameChange( self, mid=None, author_id=None, changed_for=None, new_nickname=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and so...
[ "def", "onNicknameChange", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "changed_for", "=", "None", ",", "new_nickname", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts...
Called when the client is listening, and somebody changes the nickname of a person :param mid: The action ID :param author_id: The ID of the person who changed the nickname :param changed_for: The ID of the person whom got their nickname changed :param new_nickname: The new nickname ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "the", "nickname", "of", "a", "person" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3333-L3363
220,358
carpedm20/fbchat
fbchat/_client.py
Client.onAdminAdded
def onAdminAdded( self, mid=None, added_id=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody adds an admin to a group thread :param m...
python
def onAdminAdded( self, mid=None, added_id=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody adds an admin to a group thread :param m...
[ "def", "onAdminAdded", "(", "self", ",", "mid", "=", "None", ",", "added_id", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "GROUP", ",", "ts", "=", "None", ",", "msg", "=", "No...
Called when the client is listening, and somebody adds an admin to a group thread :param mid: The action ID :param added_id: The ID of the admin who got added :param author_id: The ID of the person who added the admins :param thread_id: Thread ID that the action was sent to. See :ref:`i...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "adds", "an", "admin", "to", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3365-L3385
220,359
carpedm20/fbchat
fbchat/_client.py
Client.onAdminRemoved
def onAdminRemoved( self, mid=None, removed_id=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes an admin from a group thread ...
python
def onAdminRemoved( self, mid=None, removed_id=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes an admin from a group thread ...
[ "def", "onAdminRemoved", "(", "self", ",", "mid", "=", "None", ",", "removed_id", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "GROUP", ",", "ts", "=", "None", ",", "msg", "=", ...
Called when the client is listening, and somebody removes an admin from a group thread :param mid: The action ID :param removed_id: The ID of the admin who got removed :param author_id: The ID of the person who removed the admins :param thread_id: Thread ID that the action was sent to. ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "removes", "an", "admin", "from", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3387-L3407
220,360
carpedm20/fbchat
fbchat/_client.py
Client.onApprovalModeChange
def onApprovalModeChange( self, mid=None, approval_mode=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody changes approval mode in a group thr...
python
def onApprovalModeChange( self, mid=None, approval_mode=None, author_id=None, thread_id=None, thread_type=ThreadType.GROUP, ts=None, msg=None, ): """ Called when the client is listening, and somebody changes approval mode in a group thr...
[ "def", "onApprovalModeChange", "(", "self", ",", "mid", "=", "None", ",", "approval_mode", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "GROUP", ",", "ts", "=", "None", ",", "msg",...
Called when the client is listening, and somebody changes approval mode in a group thread :param mid: The action ID :param approval_mode: True if approval mode is activated :param author_id: The ID of the person who changed approval mode :param thread_id: Thread ID that the action was s...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "changes", "approval", "mode", "in", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3409-L3432
220,361
carpedm20/fbchat
fbchat/_client.py
Client.onMessageSeen
def onMessageSeen( self, seen_by=None, thread_id=None, thread_type=ThreadType.USER, seen_ts=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody marks a message as seen :param seen_by...
python
def onMessageSeen( self, seen_by=None, thread_id=None, thread_type=ThreadType.USER, seen_ts=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody marks a message as seen :param seen_by...
[ "def", "onMessageSeen", "(", "self", ",", "seen_by", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "seen_ts", "=", "None", ",", "ts", "=", "None", ",", "metadata", "=", "None", ",", "msg", "=", "...
Called when the client is listening, and somebody marks a message as seen :param seen_by: The ID of the person who marked the message as seen :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :param thread_type: Type of thread that the action was sent to. See :re...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "marks", "a", "message", "as", "seen" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3434-L3460
220,362
carpedm20/fbchat
fbchat/_client.py
Client.onMessageDelivered
def onMessageDelivered( self, msg_ids=None, delivered_for=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody marks messages as delivered ...
python
def onMessageDelivered( self, msg_ids=None, delivered_for=None, thread_id=None, thread_type=ThreadType.USER, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody marks messages as delivered ...
[ "def", "onMessageDelivered", "(", "self", ",", "msg_ids", "=", "None", ",", "delivered_for", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "ThreadType", ".", "USER", ",", "ts", "=", "None", ",", "metadata", "=", "None", ",", "msg",...
Called when the client is listening, and somebody marks messages as delivered :param msg_ids: The messages that are marked as delivered :param delivered_for: The person that marked the messages as delivered :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "marks", "messages", "as", "delivered" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3462-L3488
220,363
carpedm20/fbchat
fbchat/_client.py
Client.onMarkedSeen
def onMarkedSeen( self, threads=None, seen_ts=None, ts=None, metadata=None, msg=None ): """ Called when the client is listening, and the client has successfully marked threads as seen :param threads: The threads that were marked :param author_id: The ID of the person who cha...
python
def onMarkedSeen( self, threads=None, seen_ts=None, ts=None, metadata=None, msg=None ): """ Called when the client is listening, and the client has successfully marked threads as seen :param threads: The threads that were marked :param author_id: The ID of the person who cha...
[ "def", "onMarkedSeen", "(", "self", ",", "threads", "=", "None", ",", "seen_ts", "=", "None", ",", "ts", "=", "None", ",", "metadata", "=", "None", ",", "msg", "=", "None", ")", ":", "log", ".", "info", "(", "\"Marked messages as seen in threads {} at {}s\...
Called when the client is listening, and the client has successfully marked threads as seen :param threads: The threads that were marked :param author_id: The ID of the person who changed the emoji :param seen_ts: A timestamp of when the threads were seen :param ts: A timestamp of the a...
[ "Called", "when", "the", "client", "is", "listening", "and", "the", "client", "has", "successfully", "marked", "threads", "as", "seen" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3490-L3508
220,364
carpedm20/fbchat
fbchat/_client.py
Client.onPeopleAdded
def onPeopleAdded( self, mid=None, added_ids=None, author_id=None, thread_id=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody adds people to a group thread :param mid: The action ID :param added...
python
def onPeopleAdded( self, mid=None, added_ids=None, author_id=None, thread_id=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody adds people to a group thread :param mid: The action ID :param added...
[ "def", "onPeopleAdded", "(", "self", ",", "mid", "=", "None", ",", "added_ids", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ",", ")", ":", "log", ".", "info", "(", "\...
Called when the client is listening, and somebody adds people to a group thread :param mid: The action ID :param added_ids: The IDs of the people who got added :param author_id: The ID of the person who added the people :param thread_id: Thread ID that the action was sent to. See :ref:`...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "adds", "people", "to", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3536-L3557
220,365
carpedm20/fbchat
fbchat/_client.py
Client.onPersonRemoved
def onPersonRemoved( self, mid=None, removed_id=None, author_id=None, thread_id=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes a person from a group thread :param mid: The action ID :p...
python
def onPersonRemoved( self, mid=None, removed_id=None, author_id=None, thread_id=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes a person from a group thread :param mid: The action ID :p...
[ "def", "onPersonRemoved", "(", "self", ",", "mid", "=", "None", ",", "removed_id", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ",", ")", ":", "log", ".", "info", "(", ...
Called when the client is listening, and somebody removes a person from a group thread :param mid: The action ID :param removed_id: The ID of the person who got removed :param author_id: The ID of the person who removed the person :param thread_id: Thread ID that the action was sent to....
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "removes", "a", "person", "from", "a", "group", "thread" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3559-L3578
220,366
carpedm20/fbchat
fbchat/_client.py
Client.onGamePlayed
def onGamePlayed( self, mid=None, author_id=None, game_id=None, game_name=None, score=None, leaderboard=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the cli...
python
def onGamePlayed( self, mid=None, author_id=None, game_id=None, game_name=None, score=None, leaderboard=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the cli...
[ "def", "onGamePlayed", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "game_id", "=", "None", ",", "game_name", "=", "None", ",", "score", "=", "None", ",", "leaderboard", "=", "None", ",", "thread_id", "=", "None", ",", "t...
Called when the client is listening, and somebody plays a game :param mid: The action ID :param author_id: The ID of the person who played the game :param game_id: The ID of the game :param game_name: Name of the game :param score: Score obtained in the game :param leade...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "plays", "a", "game" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3617-L3651
220,367
carpedm20/fbchat
fbchat/_client.py
Client.onReactionAdded
def onReactionAdded( self, mid=None, reaction=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody reacts to a message :param mid: Message ID, that ...
python
def onReactionAdded( self, mid=None, reaction=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody reacts to a message :param mid: Message ID, that ...
[ "def", "onReactionAdded", "(", "self", ",", "mid", "=", "None", ",", "reaction", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ",", ")", ...
Called when the client is listening, and somebody reacts to a message :param mid: Message ID, that user reacted to :param reaction: Reaction :param add_reaction: Whether user added or removed reaction :param author_id: The ID of the person who reacted to the message :param threa...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "reacts", "to", "a", "message" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3653-L3681
220,368
carpedm20/fbchat
fbchat/_client.py
Client.onReactionRemoved
def onReactionRemoved( self, mid=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes reaction from a message :param mid: Message ID, that user reac...
python
def onReactionRemoved( self, mid=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening, and somebody removes reaction from a message :param mid: Message ID, that user reac...
[ "def", "onReactionRemoved", "(", "self", ",", "mid", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ",", ")", ":", "log", ".", "info", "("...
Called when the client is listening, and somebody removes reaction from a message :param mid: Message ID, that user reacted to :param author_id: The ID of the person who removed reaction :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :param thread_type...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "removes", "reaction", "from", "a", "message" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3683-L3707
220,369
carpedm20/fbchat
fbchat/_client.py
Client.onBlock
def onBlock( self, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None ): """ Called when the client is listening, and somebody blocks client :param author_id: The ID of the person who blocked :param thread_id: Thread ID that the action was sent to. See :ref:...
python
def onBlock( self, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None ): """ Called when the client is listening, and somebody blocks client :param author_id: The ID of the person who blocked :param thread_id: Thread ID that the action was sent to. See :ref:...
[ "def", "onBlock", "(", "self", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ")", ":", "log", ".", "info", "(", "\"{} blocked {} ({}) thread\"", ".", "for...
Called when the client is listening, and somebody blocks client :param author_id: The ID of the person who blocked :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :param thread_type: Type of thread that the action was sent to. See :ref:`intro_threads` :...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "blocks", "client" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3709-L3724
220,370
carpedm20/fbchat
fbchat/_client.py
Client.onLiveLocation
def onLiveLocation( self, mid=None, location=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening and somebody sends live location info :param mid: The action ID ...
python
def onLiveLocation( self, mid=None, location=None, author_id=None, thread_id=None, thread_type=None, ts=None, msg=None, ): """ Called when the client is listening and somebody sends live location info :param mid: The action ID ...
[ "def", "onLiveLocation", "(", "self", ",", "mid", "=", "None", ",", "location", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "msg", "=", "None", ",", ")", "...
Called when the client is listening and somebody sends live location info :param mid: The action ID :param location: Sent location info :param author_id: The ID of the person who sent location info :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "sends", "live", "location", "info" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3743-L3770
220,371
carpedm20/fbchat
fbchat/_client.py
Client.onUserJoinedCall
def onUserJoinedCall( self, mid=None, joined_id=None, is_video_call=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody joins a group call :...
python
def onUserJoinedCall( self, mid=None, joined_id=None, is_video_call=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody joins a group call :...
[ "def", "onUserJoinedCall", "(", "self", ",", "mid", "=", "None", ",", "joined_id", "=", "None", ",", "is_video_call", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "metadata", "=", "None", ","...
Called when the client is listening, and somebody joins a group call :param mid: The action ID :param joined_id: The ID of the person who joined the call :param is_video_call: True if it's video call :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "joins", "a", "group", "call" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3836-L3862
220,372
carpedm20/fbchat
fbchat/_client.py
Client.onPollCreated
def onPollCreated( self, mid=None, poll=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody creates a group poll :param mid:...
python
def onPollCreated( self, mid=None, poll=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody creates a group poll :param mid:...
[ "def", "onPollCreated", "(", "self", ",", "mid", "=", "None", ",", "poll", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "metadata", "=", "None", ",", "msg", ...
Called when the client is listening, and somebody creates a group poll :param mid: The action ID :param poll: Created poll :param author_id: The ID of the person who created the poll :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :param thread_...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "creates", "a", "group", "poll" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3864-L3893
220,373
carpedm20/fbchat
fbchat/_client.py
Client.onPollVoted
def onPollVoted( self, mid=None, poll=None, added_options=None, removed_options=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening...
python
def onPollVoted( self, mid=None, poll=None, added_options=None, removed_options=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening...
[ "def", "onPollVoted", "(", "self", ",", "mid", "=", "None", ",", "poll", "=", "None", ",", "added_options", "=", "None", ",", "removed_options", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ...
Called when the client is listening, and somebody votes in a group poll :param mid: The action ID :param poll: Poll, that user voted in :param author_id: The ID of the person who voted in the poll :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "votes", "in", "a", "group", "poll" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L3895-L3926
220,374
carpedm20/fbchat
fbchat/_client.py
Client.onPlanDeleted
def onPlanDeleted( self, mid=None, plan=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody deletes a plan :param mid: The a...
python
def onPlanDeleted( self, mid=None, plan=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody deletes a plan :param mid: The a...
[ "def", "onPlanDeleted", "(", "self", ",", "mid", "=", "None", ",", "plan", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "metadata", "=", "None", ",", "msg", ...
Called when the client is listening, and somebody deletes a plan :param mid: The action ID :param plan: Deleted plan :param author_id: The ID of the person who deleted the plan :param thread_id: Thread ID that the action was sent to. See :ref:`intro_threads` :param thread_type: ...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "deletes", "a", "plan" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L4017-L4046
220,375
carpedm20/fbchat
fbchat/_client.py
Client.onPlanParticipation
def onPlanParticipation( self, mid=None, plan=None, take_part=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody takes part ...
python
def onPlanParticipation( self, mid=None, plan=None, take_part=None, author_id=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody takes part ...
[ "def", "onPlanParticipation", "(", "self", ",", "mid", "=", "None", ",", "plan", "=", "None", ",", "take_part", "=", "None", ",", "author_id", "=", "None", ",", "thread_id", "=", "None", ",", "thread_type", "=", "None", ",", "ts", "=", "None", ",", "...
Called when the client is listening, and somebody takes part in a plan or not :param mid: The action ID :param plan: Plan :param take_part: Whether the person takes part in the plan or not :param author_id: The ID of the person who will participate in the plan or not :param thre...
[ "Called", "when", "the", "client", "is", "listening", "and", "somebody", "takes", "part", "in", "a", "plan", "or", "not" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_client.py#L4048-L4087
220,376
carpedm20/fbchat
fbchat/_graphql.py
graphql_queries_to_json
def graphql_queries_to_json(*queries): """ Queries should be a list of GraphQL objects """ rtn = {} for i, query in enumerate(queries): rtn["q{}".format(i)] = query.value return json.dumps(rtn)
python
def graphql_queries_to_json(*queries): """ Queries should be a list of GraphQL objects """ rtn = {} for i, query in enumerate(queries): rtn["q{}".format(i)] = query.value return json.dumps(rtn)
[ "def", "graphql_queries_to_json", "(", "*", "queries", ")", ":", "rtn", "=", "{", "}", "for", "i", ",", "query", "in", "enumerate", "(", "queries", ")", ":", "rtn", "[", "\"q{}\"", ".", "format", "(", "i", ")", "]", "=", "query", ".", "value", "ret...
Queries should be a list of GraphQL objects
[ "Queries", "should", "be", "a", "list", "of", "GraphQL", "objects" ]
f480d68b5773473e6daba7f66075ee30e8d737a8
https://github.com/carpedm20/fbchat/blob/f480d68b5773473e6daba7f66075ee30e8d737a8/fbchat/_graphql.py#L30-L37
220,377
jarun/Buku
bukuserver/server.py
get_tags
def get_tags(): """get tags.""" tags = getattr(flask.g, 'bukudb', get_bukudb()).get_tag_all() result = { 'tags': tags[0] } if request.path.startswith('/api/'): res = jsonify(result) else: res = render_template('bukuserver/tags.html', result=result) return res
python
def get_tags(): """get tags.""" tags = getattr(flask.g, 'bukudb', get_bukudb()).get_tag_all() result = { 'tags': tags[0] } if request.path.startswith('/api/'): res = jsonify(result) else: res = render_template('bukuserver/tags.html', result=result) return res
[ "def", "get_tags", "(", ")", ":", "tags", "=", "getattr", "(", "flask", ".", "g", ",", "'bukudb'", ",", "get_bukudb", "(", ")", ")", ".", "get_tag_all", "(", ")", "result", "=", "{", "'tags'", ":", "tags", "[", "0", "]", "}", "if", "request", "."...
get tags.
[ "get", "tags", "." ]
5f101363cf68f7666d4f5b28f0887ee07e916054
https://github.com/jarun/Buku/blob/5f101363cf68f7666d4f5b28f0887ee07e916054/bukuserver/server.py#L42-L52
220,378
jarun/Buku
bukuserver/server.py
create_app
def create_app(config_filename=None): """create app.""" app = FlaskAPI(__name__) per_page = int(os.getenv('BUKUSERVER_PER_PAGE', str(views.DEFAULT_PER_PAGE))) per_page = per_page if per_page > 0 else views.DEFAULT_PER_PAGE app.config['BUKUSERVER_PER_PAGE'] = per_page url_render_mode = os.getenv(...
python
def create_app(config_filename=None): """create app.""" app = FlaskAPI(__name__) per_page = int(os.getenv('BUKUSERVER_PER_PAGE', str(views.DEFAULT_PER_PAGE))) per_page = per_page if per_page > 0 else views.DEFAULT_PER_PAGE app.config['BUKUSERVER_PER_PAGE'] = per_page url_render_mode = os.getenv(...
[ "def", "create_app", "(", "config_filename", "=", "None", ")", ":", "app", "=", "FlaskAPI", "(", "__name__", ")", "per_page", "=", "int", "(", "os", ".", "getenv", "(", "'BUKUSERVER_PER_PAGE'", ",", "str", "(", "views", ".", "DEFAULT_PER_PAGE", ")", ")", ...
create app.
[ "create", "app", "." ]
5f101363cf68f7666d4f5b28f0887ee07e916054
https://github.com/jarun/Buku/blob/5f101363cf68f7666d4f5b28f0887ee07e916054/bukuserver/server.py#L519-L591
220,379
jarun/Buku
bukuserver/views.py
CustomAdminIndexView.search
def search(self): "redirect to bookmark search" form = forms.HomeForm() bbm_filter = bs_filters.BookmarkBukuFilter( all_keywords=False, deep=form.deep.data, regex=form.regex.data) op_text = bbm_filter.operation() values_combi = sorted(itertools.product([True, False], ...
python
def search(self): "redirect to bookmark search" form = forms.HomeForm() bbm_filter = bs_filters.BookmarkBukuFilter( all_keywords=False, deep=form.deep.data, regex=form.regex.data) op_text = bbm_filter.operation() values_combi = sorted(itertools.product([True, False], ...
[ "def", "search", "(", "self", ")", ":", "form", "=", "forms", ".", "HomeForm", "(", ")", "bbm_filter", "=", "bs_filters", ".", "BookmarkBukuFilter", "(", "all_keywords", "=", "False", ",", "deep", "=", "form", ".", "deep", ".", "data", ",", "regex", "=...
redirect to bookmark search
[ "redirect", "to", "bookmark", "search" ]
5f101363cf68f7666d4f5b28f0887ee07e916054
https://github.com/jarun/Buku/blob/5f101363cf68f7666d4f5b28f0887ee07e916054/bukuserver/views.py#L38-L52
220,380
lepture/mistune
mistune.py
Renderer.autolink
def autolink(self, link, is_email=False): """Rendering a given link or email address. :param link: link content or email address. :param is_email: whether this is an email or not. """ text = link = escape_link(link) if is_email: link = 'mailto:%s' % link ...
python
def autolink(self, link, is_email=False): """Rendering a given link or email address. :param link: link content or email address. :param is_email: whether this is an email or not. """ text = link = escape_link(link) if is_email: link = 'mailto:%s' % link ...
[ "def", "autolink", "(", "self", ",", "link", ",", "is_email", "=", "False", ")", ":", "text", "=", "link", "=", "escape_link", "(", "link", ")", "if", "is_email", ":", "link", "=", "'mailto:%s'", "%", "link", "return", "'<a href=\"%s\">%s</a>'", "%", "("...
Rendering a given link or email address. :param link: link content or email address. :param is_email: whether this is an email or not.
[ "Rendering", "a", "given", "link", "or", "email", "address", "." ]
449c2b52961c30665ccba6a822652ec7d0e15938
https://github.com/lepture/mistune/blob/449c2b52961c30665ccba6a822652ec7d0e15938/mistune.py#L871-L880
220,381
getsentry/sentry-python
sentry_sdk/hub.py
init
def init(*args, **kwargs): """Initializes the SDK and optionally integrations. This takes the same arguments as the client constructor. """ global _initial_client client = Client(*args, **kwargs) Hub.current.bind_client(client) rv = _InitGuard(client) if client is not None: _ini...
python
def init(*args, **kwargs): """Initializes the SDK and optionally integrations. This takes the same arguments as the client constructor. """ global _initial_client client = Client(*args, **kwargs) Hub.current.bind_client(client) rv = _InitGuard(client) if client is not None: _ini...
[ "def", "init", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "global", "_initial_client", "client", "=", "Client", "(", "*", "args", ",", "*", "*", "kwargs", ")", "Hub", ".", "current", ".", "bind_client", "(", "client", ")", "rv", "=", "_In...
Initializes the SDK and optionally integrations. This takes the same arguments as the client constructor.
[ "Initializes", "the", "SDK", "and", "optionally", "integrations", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L61-L72
220,382
getsentry/sentry-python
sentry_sdk/hub.py
HubMeta.current
def current(self): # type: () -> Hub """Returns the current instance of the hub.""" rv = _local.get(None) if rv is None: rv = Hub(GLOBAL_HUB) _local.set(rv) return rv
python
def current(self): # type: () -> Hub """Returns the current instance of the hub.""" rv = _local.get(None) if rv is None: rv = Hub(GLOBAL_HUB) _local.set(rv) return rv
[ "def", "current", "(", "self", ")", ":", "# type: () -> Hub", "rv", "=", "_local", ".", "get", "(", "None", ")", "if", "rv", "is", "None", ":", "rv", "=", "Hub", "(", "GLOBAL_HUB", ")", "_local", ".", "set", "(", "rv", ")", "return", "rv" ]
Returns the current instance of the hub.
[ "Returns", "the", "current", "instance", "of", "the", "hub", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L77-L84
220,383
getsentry/sentry-python
sentry_sdk/hub.py
Hub.get_integration
def get_integration(self, name_or_class): # type: (Union[str, Integration]) -> Any """Returns the integration for this hub by name or class. If there is no client bound or the client does not have that integration then `None` is returned. If the return value is not `None` the h...
python
def get_integration(self, name_or_class): # type: (Union[str, Integration]) -> Any """Returns the integration for this hub by name or class. If there is no client bound or the client does not have that integration then `None` is returned. If the return value is not `None` the h...
[ "def", "get_integration", "(", "self", ",", "name_or_class", ")", ":", "# type: (Union[str, Integration]) -> Any", "if", "isinstance", "(", "name_or_class", ",", "str", ")", ":", "integration_name", "=", "name_or_class", "elif", "name_or_class", ".", "identifier", "is...
Returns the integration for this hub by name or class. If there is no client bound or the client does not have that integration then `None` is returned. If the return value is not `None` the hub is guaranteed to have a client attached.
[ "Returns", "the", "integration", "for", "this", "hub", "by", "name", "or", "class", ".", "If", "there", "is", "no", "client", "bound", "or", "the", "client", "does", "not", "have", "that", "integration", "then", "None", "is", "returned", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L196-L235
220,384
getsentry/sentry-python
sentry_sdk/hub.py
Hub.bind_client
def bind_client(self, new): """Binds a new client to the hub.""" top = self._stack[-1] self._stack[-1] = (new, top[1])
python
def bind_client(self, new): """Binds a new client to the hub.""" top = self._stack[-1] self._stack[-1] = (new, top[1])
[ "def", "bind_client", "(", "self", ",", "new", ")", ":", "top", "=", "self", ".", "_stack", "[", "-", "1", "]", "self", ".", "_stack", "[", "-", "1", "]", "=", "(", "new", ",", "top", "[", "1", "]", ")" ]
Binds a new client to the hub.
[ "Binds", "a", "new", "client", "to", "the", "hub", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L248-L251
220,385
getsentry/sentry-python
sentry_sdk/hub.py
Hub.capture_event
def capture_event(self, event, hint=None): # type: (Dict[str, Any], Dict[str, Any]) -> Optional[str] """Captures an event. The return value is the ID of the event. The event is a dictionary following the Sentry v7/v8 protocol specification. Optionally an event hint dict can be passed ...
python
def capture_event(self, event, hint=None): # type: (Dict[str, Any], Dict[str, Any]) -> Optional[str] """Captures an event. The return value is the ID of the event. The event is a dictionary following the Sentry v7/v8 protocol specification. Optionally an event hint dict can be passed ...
[ "def", "capture_event", "(", "self", ",", "event", ",", "hint", "=", "None", ")", ":", "# type: (Dict[str, Any], Dict[str, Any]) -> Optional[str]", "client", ",", "scope", "=", "self", ".", "_stack", "[", "-", "1", "]", "if", "client", "is", "not", "None", "...
Captures an event. The return value is the ID of the event. The event is a dictionary following the Sentry v7/v8 protocol specification. Optionally an event hint dict can be passed that is used by processors to extract additional information from it. Typically the event hint object wo...
[ "Captures", "an", "event", ".", "The", "return", "value", "is", "the", "ID", "of", "the", "event", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L253-L268
220,386
getsentry/sentry-python
sentry_sdk/hub.py
Hub.capture_message
def capture_message(self, message, level=None): # type: (str, Optional[Any]) -> Optional[str] """Captures a message. The message is just a string. If no level is provided the default level is `info`. """ if self.client is None: return None if level is None: ...
python
def capture_message(self, message, level=None): # type: (str, Optional[Any]) -> Optional[str] """Captures a message. The message is just a string. If no level is provided the default level is `info`. """ if self.client is None: return None if level is None: ...
[ "def", "capture_message", "(", "self", ",", "message", ",", "level", "=", "None", ")", ":", "# type: (str, Optional[Any]) -> Optional[str]", "if", "self", ".", "client", "is", "None", ":", "return", "None", "if", "level", "is", "None", ":", "level", "=", "\"...
Captures a message. The message is just a string. If no level is provided the default level is `info`.
[ "Captures", "a", "message", ".", "The", "message", "is", "just", "a", "string", ".", "If", "no", "level", "is", "provided", "the", "default", "level", "is", "info", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L270-L279
220,387
getsentry/sentry-python
sentry_sdk/hub.py
Hub.capture_exception
def capture_exception(self, error=None): # type: (Optional[BaseException]) -> Optional[str] """Captures an exception. The argument passed can be `None` in which case the last exception will be reported, otherwise an exception object or an `exc_info` tuple. """ cl...
python
def capture_exception(self, error=None): # type: (Optional[BaseException]) -> Optional[str] """Captures an exception. The argument passed can be `None` in which case the last exception will be reported, otherwise an exception object or an `exc_info` tuple. """ cl...
[ "def", "capture_exception", "(", "self", ",", "error", "=", "None", ")", ":", "# type: (Optional[BaseException]) -> Optional[str]", "client", "=", "self", ".", "client", "if", "client", "is", "None", ":", "return", "None", "if", "error", "is", "None", ":", "ex...
Captures an exception. The argument passed can be `None` in which case the last exception will be reported, otherwise an exception object or an `exc_info` tuple.
[ "Captures", "an", "exception", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L281-L303
220,388
getsentry/sentry-python
sentry_sdk/hub.py
Hub.push_scope
def push_scope(self, callback=None): # noqa """Pushes a new layer on the scope stack. Returns a context manager that should be used to pop the scope again. Alternatively a callback can be provided that is executed in the context of the scope. """ if callback is not None: ...
python
def push_scope(self, callback=None): # noqa """Pushes a new layer on the scope stack. Returns a context manager that should be used to pop the scope again. Alternatively a callback can be provided that is executed in the context of the scope. """ if callback is not None: ...
[ "def", "push_scope", "(", "self", ",", "callback", "=", "None", ")", ":", "# noqa", "if", "callback", "is", "not", "None", ":", "with", "self", ".", "push_scope", "(", ")", "as", "scope", ":", "callback", "(", "scope", ")", "return", "None", "client", ...
Pushes a new layer on the scope stack. Returns a context manager that should be used to pop the scope again. Alternatively a callback can be provided that is executed in the context of the scope.
[ "Pushes", "a", "new", "layer", "on", "the", "scope", "stack", ".", "Returns", "a", "context", "manager", "that", "should", "be", "used", "to", "pop", "the", "scope", "again", ".", "Alternatively", "a", "callback", "can", "be", "provided", "that", "is", "...
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L357-L372
220,389
getsentry/sentry-python
sentry_sdk/hub.py
Hub.configure_scope
def configure_scope(self, callback=None): # noqa """Reconfigures the scope.""" client, scope = self._stack[-1] if callback is not None: if client is not None: callback(scope) return None @contextmanager def inner(): if clien...
python
def configure_scope(self, callback=None): # noqa """Reconfigures the scope.""" client, scope = self._stack[-1] if callback is not None: if client is not None: callback(scope) return None @contextmanager def inner(): if clien...
[ "def", "configure_scope", "(", "self", ",", "callback", "=", "None", ")", ":", "# noqa", "client", ",", "scope", "=", "self", ".", "_stack", "[", "-", "1", "]", "if", "callback", "is", "not", "None", ":", "if", "client", "is", "not", "None", ":", "...
Reconfigures the scope.
[ "Reconfigures", "the", "scope", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L393-L410
220,390
getsentry/sentry-python
sentry_sdk/hub.py
Hub.flush
def flush(self, timeout=None, callback=None): """Alias for self.client.flush""" client, scope = self._stack[-1] if client is not None: return client.flush(timeout=timeout, callback=callback)
python
def flush(self, timeout=None, callback=None): """Alias for self.client.flush""" client, scope = self._stack[-1] if client is not None: return client.flush(timeout=timeout, callback=callback)
[ "def", "flush", "(", "self", ",", "timeout", "=", "None", ",", "callback", "=", "None", ")", ":", "client", ",", "scope", "=", "self", ".", "_stack", "[", "-", "1", "]", "if", "client", "is", "not", "None", ":", "return", "client", ".", "flush", ...
Alias for self.client.flush
[ "Alias", "for", "self", ".", "client", ".", "flush" ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/hub.py#L412-L416
220,391
getsentry/sentry-python
sentry_sdk/client.py
Client.capture_event
def capture_event(self, event, hint=None, scope=None): # type: (Dict[str, Any], Any, Scope) -> Optional[str] """Captures an event. This takes the ready made event and an optoinal hint and scope. The hint is internally used to further customize the representation of the error. ...
python
def capture_event(self, event, hint=None, scope=None): # type: (Dict[str, Any], Any, Scope) -> Optional[str] """Captures an event. This takes the ready made event and an optoinal hint and scope. The hint is internally used to further customize the representation of the error. ...
[ "def", "capture_event", "(", "self", ",", "event", ",", "hint", "=", "None", ",", "scope", "=", "None", ")", ":", "# type: (Dict[str, Any], Any, Scope) -> Optional[str]", "if", "self", ".", "transport", "is", "None", ":", "return", "None", "if", "hint", "is", ...
Captures an event. This takes the ready made event and an optoinal hint and scope. The hint is internally used to further customize the representation of the error. When provided it's a dictionary of optional information such as exception info. If the transport is not set not...
[ "Captures", "an", "event", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/client.py#L206-L231
220,392
getsentry/sentry-python
sentry_sdk/client.py
Client.flush
def flush(self, timeout=None, callback=None): """ Wait `timeout` seconds for the current events to be sent. If no `timeout` is provided, the `shutdown_timeout` option value is used. The `callback` is invoked with two arguments: the number of pending events and the configured tim...
python
def flush(self, timeout=None, callback=None): """ Wait `timeout` seconds for the current events to be sent. If no `timeout` is provided, the `shutdown_timeout` option value is used. The `callback` is invoked with two arguments: the number of pending events and the configured tim...
[ "def", "flush", "(", "self", ",", "timeout", "=", "None", ",", "callback", "=", "None", ")", ":", "if", "self", ".", "transport", "is", "not", "None", ":", "if", "timeout", "is", "None", ":", "timeout", "=", "self", ".", "options", "[", "\"shutdown_t...
Wait `timeout` seconds for the current events to be sent. If no `timeout` is provided, the `shutdown_timeout` option value is used. The `callback` is invoked with two arguments: the number of pending events and the configured timeout. For instance the default atexit integration will us...
[ "Wait", "timeout", "seconds", "for", "the", "current", "events", "to", "be", "sent", ".", "If", "no", "timeout", "is", "provided", "the", "shutdown_timeout", "option", "value", "is", "used", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/client.py#L243-L255
220,393
getsentry/sentry-python
sentry_sdk/integrations/__init__.py
setup_integrations
def setup_integrations(integrations, with_defaults=True): # type: (List[Integration], bool) -> Dict[str, Integration] """Given a list of integration instances this installs them all. When `with_defaults` is set to `True` then all default integrations are added unless they were already provided before. ...
python
def setup_integrations(integrations, with_defaults=True): # type: (List[Integration], bool) -> Dict[str, Integration] """Given a list of integration instances this installs them all. When `with_defaults` is set to `True` then all default integrations are added unless they were already provided before. ...
[ "def", "setup_integrations", "(", "integrations", ",", "with_defaults", "=", "True", ")", ":", "# type: (List[Integration], bool) -> Dict[str, Integration]", "integrations", "=", "dict", "(", "(", "integration", ".", "identifier", ",", "integration", ")", "for", "integr...
Given a list of integration instances this installs them all. When `with_defaults` is set to `True` then all default integrations are added unless they were already provided before.
[ "Given", "a", "list", "of", "integration", "instances", "this", "installs", "them", "all", ".", "When", "with_defaults", "is", "set", "to", "True", "then", "all", "default", "integrations", "are", "added", "unless", "they", "were", "already", "provided", "befo...
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/integrations/__init__.py#L57-L98
220,394
getsentry/sentry-python
sentry_sdk/scope.py
Scope.clear
def clear(self): # type: () -> None """Clears the entire scope.""" self._level = None self._fingerprint = None self._transaction = None self._user = None self._tags = {} # type: Dict[str, Any] self._contexts = {} # type: Dict[str, Dict] self._ex...
python
def clear(self): # type: () -> None """Clears the entire scope.""" self._level = None self._fingerprint = None self._transaction = None self._user = None self._tags = {} # type: Dict[str, Any] self._contexts = {} # type: Dict[str, Dict] self._ex...
[ "def", "clear", "(", "self", ")", ":", "# type: () -> None", "self", ".", "_level", "=", "None", "self", ".", "_fingerprint", "=", "None", "self", ".", "_transaction", "=", "None", "self", ".", "_user", "=", "None", "self", ".", "_tags", "=", "{", "}",...
Clears the entire scope.
[ "Clears", "the", "entire", "scope", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/scope.py#L120-L135
220,395
getsentry/sentry-python
sentry_sdk/scope.py
Scope.add_error_processor
def add_error_processor(self, func, cls=None): # type: (Callable, Optional[type]) -> None """"Register a scope local error processor on the scope. The error processor works similar to an event processor but is invoked with the original exception info triple as second argument. "...
python
def add_error_processor(self, func, cls=None): # type: (Callable, Optional[type]) -> None """"Register a scope local error processor on the scope. The error processor works similar to an event processor but is invoked with the original exception info triple as second argument. "...
[ "def", "add_error_processor", "(", "self", ",", "func", ",", "cls", "=", "None", ")", ":", "# type: (Callable, Optional[type]) -> None", "if", "cls", "is", "not", "None", ":", "real_func", "=", "func", "def", "func", "(", "event", ",", "exc_info", ")", ":", ...
Register a scope local error processor on the scope. The error processor works similar to an event processor but is invoked with the original exception info triple as second argument.
[ "Register", "a", "scope", "local", "error", "processor", "on", "the", "scope", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/scope.py#L150-L169
220,396
getsentry/sentry-python
sentry_sdk/scope.py
Scope.apply_to_event
def apply_to_event(self, event, hint=None): # type: (Dict[str, Any], Dict[str, Any]) -> Optional[Dict[str, Any]] """Applies the information contained on the scope to the given event.""" def _drop(event, cause, ty): # type: (Dict[str, Any], Callable, str) -> Optional[Any] ...
python
def apply_to_event(self, event, hint=None): # type: (Dict[str, Any], Dict[str, Any]) -> Optional[Dict[str, Any]] """Applies the information contained on the scope to the given event.""" def _drop(event, cause, ty): # type: (Dict[str, Any], Callable, str) -> Optional[Any] ...
[ "def", "apply_to_event", "(", "self", ",", "event", ",", "hint", "=", "None", ")", ":", "# type: (Dict[str, Any], Dict[str, Any]) -> Optional[Dict[str, Any]]", "def", "_drop", "(", "event", ",", "cause", ",", "ty", ")", ":", "# type: (Dict[str, Any], Callable, str) -> O...
Applies the information contained on the scope to the given event.
[ "Applies", "the", "information", "contained", "on", "the", "scope", "to", "the", "given", "event", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/scope.py#L172-L225
220,397
getsentry/sentry-python
sentry_sdk/integrations/atexit.py
default_callback
def default_callback(pending, timeout): """This is the default shutdown callback that is set on the options. It prints out a message to stderr that informs the user that some events are still pending and the process is waiting for them to flush out. """ def echo(msg): sys.stderr.write(msg +...
python
def default_callback(pending, timeout): """This is the default shutdown callback that is set on the options. It prints out a message to stderr that informs the user that some events are still pending and the process is waiting for them to flush out. """ def echo(msg): sys.stderr.write(msg +...
[ "def", "default_callback", "(", "pending", ",", "timeout", ")", ":", "def", "echo", "(", "msg", ")", ":", "sys", ".", "stderr", ".", "write", "(", "msg", "+", "\"\\n\"", ")", "echo", "(", "\"Sentry is attempting to send %i pending error messages\"", "%", "pend...
This is the default shutdown callback that is set on the options. It prints out a message to stderr that informs the user that some events are still pending and the process is waiting for them to flush out.
[ "This", "is", "the", "default", "shutdown", "callback", "that", "is", "set", "on", "the", "options", ".", "It", "prints", "out", "a", "message", "to", "stderr", "that", "informs", "the", "user", "that", "some", "events", "are", "still", "pending", "and", ...
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/integrations/atexit.py#L16-L28
220,398
getsentry/sentry-python
sentry_sdk/integrations/wsgi.py
get_host
def get_host(environ): # type: (Dict[str, str]) -> str """Return the host for the given WSGI environment. Yanked from Werkzeug.""" if environ.get("HTTP_HOST"): rv = environ["HTTP_HOST"] if environ["wsgi.url_scheme"] == "http" and rv.endswith(":80"): rv = rv[:-3] elif envi...
python
def get_host(environ): # type: (Dict[str, str]) -> str """Return the host for the given WSGI environment. Yanked from Werkzeug.""" if environ.get("HTTP_HOST"): rv = environ["HTTP_HOST"] if environ["wsgi.url_scheme"] == "http" and rv.endswith(":80"): rv = rv[:-3] elif envi...
[ "def", "get_host", "(", "environ", ")", ":", "# type: (Dict[str, str]) -> str", "if", "environ", ".", "get", "(", "\"HTTP_HOST\"", ")", ":", "rv", "=", "environ", "[", "\"HTTP_HOST\"", "]", "if", "environ", "[", "\"wsgi.url_scheme\"", "]", "==", "\"http\"", "a...
Return the host for the given WSGI environment. Yanked from Werkzeug.
[ "Return", "the", "host", "for", "the", "given", "WSGI", "environment", ".", "Yanked", "from", "Werkzeug", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/integrations/wsgi.py#L35-L55
220,399
getsentry/sentry-python
sentry_sdk/integrations/wsgi.py
get_request_url
def get_request_url(environ): # type: (Dict[str, str]) -> str """Return the absolute URL without query string for the given WSGI environment.""" return "%s://%s/%s" % ( environ.get("wsgi.url_scheme"), get_host(environ), wsgi_decoding_dance(environ.get("PATH_INFO") or "").lstrip("...
python
def get_request_url(environ): # type: (Dict[str, str]) -> str """Return the absolute URL without query string for the given WSGI environment.""" return "%s://%s/%s" % ( environ.get("wsgi.url_scheme"), get_host(environ), wsgi_decoding_dance(environ.get("PATH_INFO") or "").lstrip("...
[ "def", "get_request_url", "(", "environ", ")", ":", "# type: (Dict[str, str]) -> str", "return", "\"%s://%s/%s\"", "%", "(", "environ", ".", "get", "(", "\"wsgi.url_scheme\"", ")", ",", "get_host", "(", "environ", ")", ",", "wsgi_decoding_dance", "(", "environ", "...
Return the absolute URL without query string for the given WSGI environment.
[ "Return", "the", "absolute", "URL", "without", "query", "string", "for", "the", "given", "WSGI", "environment", "." ]
a1d77722bdce0b94660ebf50b5c4a4645916d084
https://github.com/getsentry/sentry-python/blob/a1d77722bdce0b94660ebf50b5c4a4645916d084/sentry_sdk/integrations/wsgi.py#L58-L66