Constructs a MessageContext

        :param sid: The unique string that identifies the resource

        :returns: twilio.rest.chat.v2.service.channel.message.MessageContext
        :rtype: twilio.rest.chat.v2.service.channel.message.MessageContext
427620
def get(self, sid):
        
        return MessageContext(
            self._version,
            service_sid=self._solution['service_sid'],
            channel_sid=self._solution['channel_sid'],
            sid=sid,
        )
284663
public function getContext($sid) {
        return new InviteContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['channelSid'],
            $sid
        );
    }
666053
def get(self, sid):
        
        return DocumentContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
878967
public String getMessage(Context context) {
        if (customMessage != null) {
            return customMessage;
        }
        return context.getResources().getString(message);
    }
103624
def create_context(self, message_queue, task_id):
        
        params = (self.settings.dest_directory, self.file_url.json_data, self.seek_amt, self.bytes_to_read)
        return DownloadContext(self.settings, params, message_queue, task_id)
1361636
def get(self):
        
        return EngagementContextContext(
            self._version,
            flow_sid=self._solution['flow_sid'],
            engagement_sid=self._solution['engagement_sid'],
        )
863803
public Object buildMessagePayload(TestContext context, String messageType) {
        this.getMessageInterceptors().add(gzipMessageConstructionInterceptor);
        this.getMessageInterceptors().add(binaryMessageConstructionInterceptor);
        return getPayloadContent(context, messageType);
    }
929575
public function getContext($sid) {
        return new NotificationContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['callSid'],
            $sid
        );
    }
1361476
def get(self, sid):
        
        return QueryContext(self._version, assistant_sid=self._solution['assistant_sid'], sid=sid, )
536301
def _make_context(self, request: 'Request'=None, state: Text=None):
        

        if request:
            self.client.user_context({
                'id': request.user.id,
            })
            self.client.extra_context({
                'message': repr(request.stack),
                'register': make_rw(request.register),
            })
            self.client.tags_context({
                'conversation_id': request.conversation.id,
                'from_state': request.register.get(request.register.STATE),
                'state': state,
                'platform': request.platform,
            })
316408
def get_instance(self, payload):
        
        return MessageInstance(self._version, payload, session_sid=self._solution['session_sid'], )
417518
def get(self, sid):
        
        return EnvironmentContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
50169
public function getContext($sid) {
        return new ParticipantContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['sessionSid'],
            $sid
        );
    }
1016679
def ip_messaging(self):
        
        if self._ip_messaging is None:
            from twilio.rest.ip_messaging import IpMessaging
            self._ip_messaging = IpMessaging(self)
        return self._ip_messaging
1174341
def get(self, sid):
        
        return RoomRecordingContext(self._version, room_sid=self._solution['room_sid'], sid=sid, )
377670
def get(self, sid):
        
        return MediaContext(
            self._version,
            account_sid=self._solution['account_sid'],
            message_sid=self._solution['message_sid'],
            sid=sid,
        )
50009
public function getContext($sid) {
        return new SampleContext(
            $this->version,
            $this->solution['assistantSid'],
            $this->solution['taskSid'],
            $sid
        );
    }