2024-05-16 18:44:57 +03:00
|
|
|
from babase import app, Plugin as p
|
|
|
|
|
from bascenev1 import gettexture as x, apptimer as z
|
|
|
|
|
from bascenev1 import broadcastmessage as push, get_foreground_host_activity as ga, get_chat_messages as gcm
|
|
|
|
|
|
2025-01-22 23:18:50 +05:30
|
|
|
# ba_meta require api 9
|
2024-05-16 18:44:57 +03:00
|
|
|
# ba_meta export plugin
|
2024-05-16 16:07:23 +00:00
|
|
|
|
|
|
|
|
|
2024-05-16 18:44:57 +03:00
|
|
|
class byBordd(p):
|
|
|
|
|
def ear(s):
|
|
|
|
|
a = gcm()
|
|
|
|
|
if a and s.la != a[-1]:
|
2024-05-16 16:07:23 +00:00
|
|
|
if app.config.resolve('Chat Muted'):
|
|
|
|
|
push(a[-1], (1, 1, 1), True, s.con)
|
2024-05-16 18:44:57 +03:00
|
|
|
s.la = a[-1]
|
|
|
|
|
z(0.1, s.ear)
|
2024-05-16 16:07:23 +00:00
|
|
|
|
2024-05-16 18:44:57 +03:00
|
|
|
def get(s):
|
2024-05-16 16:07:23 +00:00
|
|
|
with ga().context:
|
|
|
|
|
s.con = x("upButton")
|
|
|
|
|
s.la = None
|
|
|
|
|
s.ear()
|
|
|
|
|
|
|
|
|
|
|
2025-01-22 23:18:50 +05:30
|
|
|
z(1.0, byBordd().get)
|