FAQ

How do I stop logging?

logging is enabled by default to the most verbose option.to remove it you can do the following

logging.js
client.setLogLevel("none"); // no logging
client.setLogLevel("error"); // only errors
client.setLogLevel("warn"); // warnings too
client.setLogLevel("info"); // info too
client.setLogLevel("debug"); // everything

Can I use a proxy?

Sadly no, gramjs is meant to be used in both browser and nodejs ecosystem, and as far as I know, there is no way to use proxies in browsers so it's not currently possible.

Last updated