Skip to content

Commit f2df730

Browse files
committed
fix on CI error
Problem: The SocksProxyAgent from socks-proxy-agent@6.2.0-beta.0 has incompatible types with Telegraf's expected Agent interface. Solution: Used a type assertion (as any) to bypass the TypeScript type checking for the agent property, while preserving the spread operator to maintain other options.
1 parent 288c6ac commit f2df730

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ import { CommunityContext } from "./bot/modules/community/communityContext";
3131
if (process.env.SOCKS_PROXY_HOST) {
3232
const agent = new SocksProxyAgent(process.env.SOCKS_PROXY_HOST);
3333
options = {
34+
...options,
3435
telegram: {
35-
agent,
36+
agent: agent as any,
3637
},
3738
};
3839
}

0 commit comments

Comments
 (0)