( baseUrl: string, token: string, userId: string, contextToken?: string, )
| 117 | } |
| 118 | |
| 119 | export async function getConfig( |
| 120 | baseUrl: string, |
| 121 | token: string, |
| 122 | userId: string, |
| 123 | contextToken?: string, |
| 124 | ): Promise<GetConfigResp> { |
| 125 | return post<GetConfigResp>( |
| 126 | baseUrl, |
| 127 | '/ilink/bot/getconfig', |
| 128 | { |
| 129 | ilink_user_id: userId, |
| 130 | context_token: contextToken, |
| 131 | base_info: baseInfo(), |
| 132 | }, |
| 133 | token, |
| 134 | ) |
| 135 | } |
| 136 | |
| 137 | export async function sendTyping( |
| 138 | baseUrl: string, |
no test coverage detected