BastliBridge

A bot framework bridgin multiple IM protocols, and mail
git clone git://xatko.vsos.ethz.ch/BastliBridge.git
Log | Files | Refs | Submodules

commit 8b5b2a035e3d1c67a363da971c8e2667d07e3c4f
parent 3e6e701b16a5cd1114b4a3bf3f3a8b4c7ca38718
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Mon, 25 Sep 2017 22:40:47 +0200

Remove some leftover (sock) <-> () overloads

Diffstat:
src/bastlibridge/telegram.d | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/bastlibridge/telegram.d b/src/bastlibridge/telegram.d @@ -91,7 +91,7 @@ struct Telegram{ if(test){ //Try whether the socket works trace("Trying to get the Botname via newly opened socket "~sock.handle.to!string); - botName=getBotName(sock); + botName=getBotName(); } } @@ -298,13 +298,11 @@ struct Telegram{ string botName; string getBotName(){ - return getBotName(sock); - } - string getBotName(Socket sock){ http("getMe"); string _botName=response()["username"].str; return _botName; } + string getFile(in char[] file_id){ JSONValue j; j.object=null;