mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			686 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			686 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
query ChatPaginationQuery($bot: String!, $before: String, $last: Int! = 10) {
 | 
						|
    chatOfBot(bot: $bot) {
 | 
						|
        id
 | 
						|
        __typename
 | 
						|
        messagesConnection(before: $before, last: $last) {
 | 
						|
            pageInfo {
 | 
						|
                hasPreviousPage
 | 
						|
            }
 | 
						|
            edges {
 | 
						|
                node {
 | 
						|
                    id
 | 
						|
                    __typename
 | 
						|
                    messageId
 | 
						|
                    text
 | 
						|
                    linkifiedText
 | 
						|
                    authorNickname
 | 
						|
                    state
 | 
						|
                    vote
 | 
						|
                    voteReason
 | 
						|
                    creationTime
 | 
						|
                    suggestedReplies
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |