# Sample run of poll_bot.py against the mock bot API (lesson AUT-203-L04). Synthetic updates. $ python poll_bot.py --once update 5001: replied to chat 70001 update 5002: replied to chat 70002 update 5003: replied to chat 70001 update 5004: replied to chat 70003 update 5005: skipped (no text) $ python poll_bot.py --once # second run: offset saved, nothing reprocessed (no output: no new updates) $ curl http://127.0.0.1:8787/sent-messages { "data": [ { "chat_id": 70001, "text": "وضعیت سفارش BS-1002: در حال آماده‌سازی." }, { "chat_id": 70002, "text": "پیامت ثبت شد. برای پیگیری سفارش، شماره سفارش (مثل BS-1001) را بفرست." }, { "chat_id": 70001, "text": "پیامت ثبت شد. برای پیگیری سفارش، شماره سفارش (مثل BS-1001) را بفرست." }, { "chat_id": 70003, "text": "پیامت ثبت شد. برای پیگیری سفارش، شماره سفارش (مثل BS-1001) را بفرست." } ] }