# Get next new post in a chat between 2 dates — Telegram User Botize method — `telegram_users.bps_next_message_in_range` (trigger). Extract posts from any Telegram chat one by one for a range of dates, which can be groups or channels, public or private, chats of a specific user or of a bot. - Requires you to have access to the chat from your Telegram account - No Telegram bot required This is a trigger: it starts the task. A task has exactly one. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `chat_url` *(string)* — Chat Id - `range_from` *(string)* — From date - `range_to` *(string)* — To date - `max_file_mb` *(string, one of: "20" = 20 MB; "50" = 50 MB; "100" = 100 MB; "250" = 250 MB; "500" = 500 MB; "1024" = 1 GB; "2048" = 2 GB; "0" = Exclude all files (no images, video or files will be downloaded))* — Exclude files bigger than this size It also accepts repeatable field groups, with these prefixes: `filter_*`. These are composite components (buttons, filters, keyboards); the trailing number is set by the user as they are added. ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{post_id}}` *(int)* — Post Id - `{{chat_id}}` *(int)* — Chat Id - `{{url_message}}` *(text)* — URL Message - `{{message}}` *(text)* — Message - `{{message_html}}` *(text)* — Message HTML - `{{post_datetime}}` *(text)* — Post Date-time - `{{image_url}}` *(text)* — Image URL - `{{user_id}}` *(int)* — User Id - `{{first_name}}` *(text)* — User first name - `{{username}}` *(text)* — Username - `{{reply_to_msg_id}}` *(int)* — Reply to Message Id - `{{media}}` *(array)* — Media - `{{media.0}}` *(text)* — Media 1 - `{{media.1}}` *(text)* — Media 2 - `{{media.2}}` *(text)* — Media 3 - `{{media.3}}` *(text)* — Media 4 - `{{media.4}}` *(text)* — Media 5 - `{{media.5}}` *(text)* — Media 6 - `{{media.6}}` *(text)* — Media 7 - `{{media.7}}` *(text)* — Media 8 - `{{media.8}}` *(text)* — Media 9 - `{{media.9}}` *(text)* — Media 10 - `{{poll}}` *(array)* — Poll: Data - `{{poll.question}}` *(text)* — Poll: Question - `{{poll.options}}` *(array)* — Poll: Options - `{{poll.options.0}}` *(text)* — Poll: Option Nº1 ## Account Needs a connected Telegram User account in Botize: https://botize.com/en/app/telegram_users/authenticate ## This app Every trigger and action for Telegram User: https://botize.com/en/app/telegram_users.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/telegram_users/bps_next_message_in_range