11'''Telegram bot that (primarily) attempts to perform url hacks to get around paywalls'''
22
33
4- __version__ = '2.5.2.lol '
4+ __version__ = '2.5.2'
55
66
77import asyncio
@@ -270,8 +270,7 @@ async def add_bypasses(url: str) -> str:
270270 (txtify_it , 'txtify.it' ),
271271 (twitter , 'Twitter Embed' ),
272272 (nitter , 'Twiiit' ),
273- (lite_mode , 'Lite Mode' ),
274- (rick_roll , 'Experimental' )
273+ (lite_mode , 'Lite Mode' )
275274 )
276275
277276 async with httpx .AsyncClient (http2 = True ) as client :
@@ -287,20 +286,6 @@ async def add_bypasses(url: str) -> str:
287286
288287
289288# bypasses
290- @timer
291- @snitch
292- async def rick_roll (url : str , client : httpx .AsyncClient ) -> str | None :
293- '''Rickrolls people on April 1st'''
294- def is_april_fools ():
295- utc_now = datetime .now (timezone .utc )
296- start_time_utc = datetime (2025 , 4 , 1 , 0 , 0 , tzinfo = timezone .utc ) - timedelta (hours = - 4 ) # EDT
297- end_time_utc = datetime (2025 , 4 , 2 , 0 , 0 , tzinfo = timezone .utc ) - timedelta (hours = - 7 ) # PDT
298- return start_time_utc <= utc_now <= end_time_utc
299-
300- if is_april_fools ():
301- return 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
302-
303-
304289@timer
305290@snitch
306291async def wayback (url : str , client : httpx .AsyncClient ) -> str | None :
0 commit comments