telegram-tdlib - Login error: Authentication error: code 400 (Can't lock file "/var/lib/bitlbee/purple/user/tdlib/+n/td.binlog", because it is already in use by current program)
Whenever trying to connect from one of my libpurple (BitlBee, Pidgin) instances, it says: telegram-tdlib - Login error: Authentication error: code 400 (Can't lock file "/var/lib/bitlbee/purple/user/tdlib/+n/td.binlog", because it is already in use by current program). I deleted it then was able to log back in. It happened again but deleting it didn't help this time. Mostly I use BitlBee on my GNU/Linux server which was down, so used it on my PC a while, and then built new PC. Now I can't login at all except on cellular telephone or desktop personal computers.
The error means that the directory is being used by the same program. Likely, there is a logic error in the program's code, which causes opening of the same account twice.