forked from hkc/mastoposter
Made black happy
This commit is contained in:
parent
366a357643
commit
093337414b
|
@ -58,9 +58,9 @@ class TelegramIntegration(BaseIntegration):
|
||||||
self.token = sect.get("token", "")
|
self.token = sect.get("token", "")
|
||||||
self.chat_id = sect.get("chat", "")
|
self.chat_id = sect.get("chat", "")
|
||||||
self.silent = sect.getboolean("silent", True)
|
self.silent = sect.getboolean("silent", True)
|
||||||
self.template: Template = Template(emojize(
|
self.template: Template = Template(
|
||||||
sect.get("template", DEFAULT_TEMPLATE)
|
emojize(sect.get("template", DEFAULT_TEMPLATE))
|
||||||
))
|
)
|
||||||
|
|
||||||
async def _tg_request(self, method: str, **kwargs) -> TGResponse:
|
async def _tg_request(self, method: str, **kwargs) -> TGResponse:
|
||||||
url = API_URL.format(self.token, method)
|
url = API_URL.format(self.token, method)
|
||||||
|
|
Loading…
Reference in New Issue