CREATE EXTENSION IF NOT EXISTS "pgcrypto";
INSERT INTO telegram(tg_id, tg_name, loginhash) SELECT chat_id AS tg_id, 'Anonymous', gen_random_uuid() FROM telegram_chats;
DROP TABLE telegram_chats;