TeamDaisyX / DaisyXMusic

Free and Open Source Group Voice chat music player for telegram ❤️ with button support youtube playback support
MIT License
204 stars 826 forks source link

stats error #101

Closed Azim-Azizov closed 3 years ago

Azim-Azizov commented 3 years ago

function updated_stats in DaisyXMusic/modules/play.py returns object None/

problem in if condition. if condition is False, chat_id in callsmusic.pytgcalls.active_calls >> False i can't fix it/

Pranav-Saraswat commented 3 years ago

Can you send me logs of what u face error

devilroogan commented 3 years ago

Can you send me logs of what u face error

reysiregar commented 3 years ago

why not try this method? :

client = Client(config.SESSION_NAME, config.API_ID, config.API_HASH)

run = client.run

InukaAsith commented 3 years ago

Can you send me logs of what u face error

* File "/app/DaisyXMusic/**main**.py", line 22, in 
  2021-08-24T19:45:46.645319+00:00 app[worker.1]:     from DaisyXMusic.services.callsmusic import run
  2021-08-24T19:45:46.645333+00:00 app[worker.1]:   File "/app/DaisyXMusic/services/callsmusic/**init**.py", line 2, in 
  2021-08-24T19:45:46.646037+00:00 app[worker.1]:     from DaisyXMusic.services.callsmusic.callsmusic import pytgcalls, run
  2021-08-24T19:45:46.646063+00:00 app[worker.1]:   File "/app/DaisyXMusic/services/callsmusic/callsmusic.py", line 38, in 
  2021-08-24T19:45:46.646283+00:00 app[worker.1]:     run = pytgcalls.run
  2021-08-24T19:45:46.646311+00:00 app[worker.1]: AttributeError: 'PyTgCalls' object has no attribute 'run'
  2021-08-24T19:45:46.876236+00:00 heroku[worker.1]: Process exited with status 1
  2021-08-24T19:45:46.953759+00:00 heroku[worker.1]: State changed from up to crashed

Merge pull request from latest source code

InukaAsith commented 3 years ago

why not try this method? :

client = Client(config.SESSION_NAME, config.API_ID, config.API_HASH)

run = client.run

pytgcalls = PyTgCalls(client)

this will start client through pytgcalls so no need for this

Pranav-Saraswat commented 3 years ago

🤔

why not try this method? : client = Client(config.SESSION_NAME, config.API_ID, config.API_HASH) run = client.run

pytgcalls = PyTgCalls(client)

this will start client through pytgcalls so no need for this

🤔

reysiregar commented 3 years ago

why you confused hunter ?, that's no a hard case 😐

Pranav-Saraswat commented 3 years ago

try marshal lib branch there some bugs in PyTgCalls Lib