: Ensure your automation software pulls the "Main Stream" (highest resolution) rather than the "Sub Stream" (lower quality) for Telegram snapshots.
| Problem | Likely Cause | Solution | | :--- | :--- | :--- | | | Camera is 5GHz only; Router is 2.4GHz mixed mode. | Disable "Band Steering" on your router. | | Telegram image is blurry | Camera’s substream is being captured instead of mainstream. | Check the RTSP URL: /stream1 is usually main; /stream2 is low quality. | | Lag is 10+ seconds | Telegram's file server is slow OR you are using MJPEG. | Switch to H.265 RTSP and use socket timeouts in Python. | | Bot sends low resolution | OpenCV default capture resolution is 640x480. | Explicitly set CAP_PROP_FRAME_WIDTH and HEIGHT as shown in the script. | ip camera qr telegram extra quality top
from telegram import InlineKeyboardButton, InlineKeyboardMarkup : Ensure your automation software pulls the "Main