diff --git a/interactive.py b/interactive.py old mode 100644 new mode 100755 index 7682290..7b1b19f --- a/interactive.py +++ b/interactive.py @@ -1,12 +1,8 @@ from telethon import sync, TelegramClient +import tttcutils import os -if not ("TTTC_API_ID" in os.environ or "TTTC_API_HASH" in os.environ): - print("Please set your environment variables \"TTTC_API_ID\" and \"TTTC_API_HASH\" accordingly.") - print("Please consult https://core.telegram.org/api/obtaining_api_id on how to get your own API id and hash.") - quit(1) -api_id = os.environ["TTTC_API_ID"] -api_hash = os.environ["TTTC_API_HASH"] +api_id, api_hash = tttcutils.assert_environment() client = TelegramClient("tttc", api_id, api_hash) client.connect() diff --git a/vimbindings.md b/vimbindings.md deleted file mode 100644 index af1c23f..0000000 --- a/vimbindings.md +++ /dev/null @@ -1,60 +0,0 @@ -A a append/append -B b back/BACK -C c change -D d delete -E e end/END -F f find/Find -G g go/GO -H h LEFT -I i INSERT -J j DOWN -K k UP -L l RIGHT -M m -N n -O o insert line -P p put -Q q quit -R r nReply, vReply/replace -S s -T t till -U u -V v visual mode - v - text visual - V - message visual - vV - text line visual -W w word -X x del -Y y yank -Z z -0 $ goto 0 $ -? help - -RETURN send?? - -^A -^B -^C kill -^D -^E -^F -^G -^H -^I -^J -^K -^L -^M -^N -^O -^P -^Q -^R -^S -^T -^U -^V -^W -^X -^Y -^Z