FILM ARCHIVES

ip camera qr telegram full
2018

Ip Camera Qr Telegram Full Online

The story unfolds with Raja who lives in a small town with his parents and an unmarried sister; Baby Baji. The plot takes a twist when Raja finally musters up the courage to profess his feelings for Meeru but life throws a curve ball at him. The sudden demise of his father that very day leaves Raja with the responsibility of filling in his father’s shoes and also finding a husband for his sister...

  • WATCH THE TRAILER
  • 2h 15m
  • Comedy/ROMANCE 7.5
  • August 22, 2018
  • 7.4 IMDb
  • Box Office Rs. 25 crore
  • Status Released

Ip Camera Qr Telegram Full Online

@app.route('/event', methods=['POST']) def event(): data = request.form or request.json cam_id = data.get('camera_id') # If camera posts image file: if 'image' in request.files: img = request.files['image'].read() files = {'photo': ('snapshot.jpg', img)} r = requests.post(TELEGRAM_SEND, data={'chat_id': CHAT_ID, 'caption': f'Alert: {cam_id}'}, files=files) return jsonify(status='sent', resp=r.json()), 200 # Or camera sends snapshot_url: snap = data.get('snapshot_url') if snap: r = requests.get(snap) files = {'photo': ('snap.jpg', r.content)} r2 = requests.post(TELEGRAM_SEND, data={'chat_id': CHAT_ID, 'caption': f'Alert: {cam_id}'}, files=files) return jsonify(status='sent', resp=r2.json()), 200 return jsonify(status='no-image'), 400

@app.route('/register', methods=['POST']) def register(): data = request.json cam_id = data.get('camera_id'); token = data.get('token'); snap = data.get('snapshot_url') # validate short-lived token (example omitted) conn = sqlite3.connect(DB); c=conn.cursor() c.execute('REPLACE INTO cameras(id,token,snapshot_url) VALUES (?,?,?)',(cam_id,token,snap)) conn.commit(); conn.close() return jsonify(status='ok'), 200 ip camera qr telegram full

BOT_TOKEN = os.getenv('BOT_TOKEN') CHAT_ID = os.getenv('CHAT_ID') TELEGRAM_SEND = f'https://api.telegram.org/bot{BOT_TOKEN}/sendPhoto' img)} r = requests.post(TELEGRAM_SEND

app = Flask(__name__) DB = 'cameras.db'

# requirements: flask requests python-dotenv from flask import Flask, request, jsonify import sqlite3, requests, os 'caption': f'Alert: {cam_id}'}

def init_db(): conn = sqlite3.connect(DB); c=conn.cursor() c.execute('''CREATE TABLE IF NOT EXISTS cameras(id TEXT PRIMARY KEY, token TEXT, snapshot_url TEXT)''') conn.commit(); conn.close()

Cast & Crew

  • Director & Co-writer

    Nabeel Qureshi
  • Producer & Co-writer

    Fizza Ali Meerza
  • Producer

    Mehdi Ali
  • Actor

    Fahad Mustafa
  • Actress

    Mehwish Hayat
  • Actress

    Samina Ahmad
  • Actress

    Faiza Hasan
  • Actor

    NOOR UL HASAN Noor Ul
  • Actor

    Qaiser Piya
  • Actor

    Mohsin Abbas Haider
  • Actor

    Om Puri
  • Actress

    Hania Aamir

More Movies


Parse error: syntax error, unexpected identifier "version" in /var/www/html/footer.php on line 94