Function bot_sslime::messages::fetch_messages
source · pub async fn fetch_messages<Tz>(
pool: &MySqlPool,
limit: Option<usize>,
after: Option<DateTime<Tz>>
) -> Result<Vec<MessageRecord>>
Expand description
ある時点より新しいメッセージすべてを最大 limit 件取得し、DB に保存する (ただし、DB に保存される件数は limit 件を上回る可能性がある)