def send_tip(self, sender, receiver, message, context_uid, meta):
assert self.channel is not None, "<STR_LIT>"<EOL>meta["<STR_LIT>"] = self.mention_bot()<EOL>data = json.dumps({<EOL>"<STR_LIT>": self.channel,<EOL>"<STR_LIT>": sender,<EOL>"<STR_LIT>": receiver,<EOL>"<STR_LIT:message>": message,<EOL>"<STR_LIT>": context_uid,<EOL>"<STR_LIT>": meta,<EOL>})<EOL>response = requests.post(self.get_api_url("<STR_LIT>"), data=data, headers={'<STR_LIT>': '<STR_LIT:application/json>'})<EOL>if response.headers.get("<STR_LIT:Content-Type>", None) == "<STR_LIT:application/json>":<EOL><INDENT>out = response.json()<EOL>out["<STR_LIT:state>"] = response.reason.lower()<EOL>return out<EOL><DEDENT>else:<EOL><INDENT>return {"<STR_LIT:state>": response.reason.lower(), "<STR_LIT:error>": "<STR_LIT>" % response.status_code}<EOL><DEDENT>
Send a request to the ChangeTip API, to be delivered immediately.