unminder
¤
Unminder package.
Queue things in a list, review them later.
Functions:
-
get_parser–Return the CLI argument parser.
-
get_user_credentials–Read the Telegram username, API ID, and API hash from environment variables.
-
main–Run the main program.
-
review–Print the configured user's Telegram messages in oldest-first order.
get_parser
¤
get_parser() -> ArgumentParser
Return the CLI argument parser.
Returns:
-
ArgumentParser–An argparse parser.
Source code in src/unminder/_internal/cli.py
94 95 96 97 98 99 100 101 102 103 | |
get_user_credentials
¤
Read the Telegram username, API ID, and API hash from environment variables.
Source code in src/unminder/_internal/cli.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
main
¤
Run the main program.
This function is executed when you type unminder or python -m unminder.
Parameters:
Returns:
-
int–An exit code.
Source code in src/unminder/_internal/cli.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
review
¤
Print the configured user's Telegram messages in oldest-first order.
Print the message count before the text of each message.
Source code in src/unminder/_internal/cli.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |