<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tim bennett</title>
    <description>The latest articles on DEV Community by tim bennett (@tim_bennett_d721431c8295a).</description>
    <link>https://dev.to/tim_bennett_d721431c8295a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1682214%2F1eeb8c09-a871-461b-8562-39119aa60a32.png</url>
      <title>DEV Community: tim bennett</title>
      <link>https://dev.to/tim_bennett_d721431c8295a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tim_bennett_d721431c8295a"/>
    <language>en</language>
    <item>
      <title>DEjango twilio mms fowarding</title>
      <dc:creator>tim bennett</dc:creator>
      <pubDate>Tue, 25 Jun 2024 15:09:26 +0000</pubDate>
      <link>https://dev.to/tim_bennett_d721431c8295a/dejango-twilio-mms-fowarding-309b</link>
      <guid>https://dev.to/tim_bennett_d721431c8295a/dejango-twilio-mms-fowarding-309b</guid>
      <description>&lt;p&gt;I have a small web page for my pigeon club.  I use Twilio to send 1 direction messages.  I want to be able to send a pic to the Twilio number and forward to multiple numbers.  I can receive the message but do not know how to forward the image from my message.  Any help would be great.&lt;/p&gt;

&lt;p&gt;`@csrf_exempt&lt;br&gt;
def mms_reply(self):&lt;br&gt;
    Bodyx = self.POST.get('Body')&lt;br&gt;
    response = MessagingResponse()&lt;br&gt;
    if Bodyx =='1':&lt;br&gt;
        msg = response.message("Gotta love a GIF!")&lt;br&gt;
    else:&lt;br&gt;
        msg = response.message("Sorry you cannot reply to this number")&lt;br&gt;
    from_number = self.POST.get('From', '')&lt;br&gt;
    #msg = response.message(from_number)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;med=self.POST.get('MediaUrl[0]')
msg = response.message(str(med))
med=self.POST.get('NumMedia')
msg = response.message(str(med)+' NumMedia')
msg.media("../static/pigeonpic.jpg")
#media_link=medx
#msg.media(media_link)

return HttpResponse(str(response))
#return HttpResponse(str(Bodyx))
#../static/pigeonpic.jpg`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
