genstava789 commited on
Commit ·
cd8717a
1
Parent(s): 6779b5c
init
Browse files
bot.py
CHANGED
|
@@ -189,17 +189,6 @@ async def close_ngrok(client: Client, callback_query: CallbackQuery):
|
|
| 189 |
|
| 190 |
await callback_query.answer("Message closed!", show_alert=False)
|
| 191 |
|
| 192 |
-
def get_progress_bar_string(pct) -> str:
|
| 193 |
-
if isinstance(pct, int):
|
| 194 |
-
pct = float(pct)
|
| 195 |
-
elif not isinstance(pct, float):
|
| 196 |
-
pct = float(pct.strip("%"))
|
| 197 |
-
p = min(max(pct, 0), 100)
|
| 198 |
-
cFull = int(p // 8)
|
| 199 |
-
p_str = "■" * cFull
|
| 200 |
-
p_str += "□" * (12 - cFull)
|
| 201 |
-
return f"[{p_str}]"
|
| 202 |
-
|
| 203 |
# Function to extract tweet IDs
|
| 204 |
def extract_tweet_ids(text: str) -> Optional[list[str]]:
|
| 205 |
"""Extract tweet IDs from message."""
|
|
|
|
| 189 |
|
| 190 |
await callback_query.answer("Message closed!", show_alert=False)
|
| 191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
# Function to extract tweet IDs
|
| 193 |
def extract_tweet_ids(text: str) -> Optional[list[str]]:
|
| 194 |
"""Extract tweet IDs from message."""
|