#!/bin/bash # Usage: # ./get_messages.sh msgtype=m.text homeserver=glasgow.social room=room_id_here access_token=your_access_token_here from=start_point_goes_here curl -XGET "https://$homeserver/_matrix/client/r0/rooms/$room/messages?access_token=$access_token&from=$from"