Hello, I'm trying to use telegraph api but I cannot resolve host api.telegra.ph on my server correctly these days. So I considered using proxy in requests, but there is no way to pass proxies argument in telegraph api.
This pr Added a request_kwargs attribute to TelegraphApi and modified method() and will solve this. For example, set
Hello, I'm trying to use telegraph api but I cannot resolve host api.telegra.ph on my server correctly these days. So I considered using proxy in requests, but there is no way to pass
proxies
argument in telegraph api.This pr Added a
request_kwargs
attribute toTelegraphApi
and modifiedmethod()
and will solve this. For example, setthen requests will use
proxy_url
as proxy. This supports other keyword arguments used byrequests
as well.This pr will not affect normal use if
request_kwargs
is not needed. Resolves #22