pytgcalls / ntgcalls

A Native Implementation of Telegram Calls in a seamless way.
https://pytgcalls.github.io
GNU Lesser General Public License v3.0
44 stars 10 forks source link

segmentation fault #8

Closed Jaykef closed 7 months ago

Jaykef commented 7 months ago

Code runs well then suddenly stops:

PyTgCalls v1.0.5 powered by NTgCalls v1.0.0.dev24, Copyright (C) 2021-2023 Laky-64 https://github.com/Laky-64 Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

zsh: segmentation fault python3 video.py

Laky-64 commented 7 months ago

Can you share more details? Like if is reproducible and etc

Jaykef commented 7 months ago

Can you share more details? Like if is reproducible and etc

Yes I was just trying out example/simple_calls/example_simple.py with pyrogram client (got a connection) but when I enter "!play" command in the group chat, it crashes:

error
Laky-64 commented 7 months ago

It happens always or happened just one time?

Jaykef commented 7 months ago

It happens always or happened just one time?

always, I've tried many times, same result

Laky-64 commented 7 months ago

Can you send here a video please? And when happens? Like when changing stream or etc

Jaykef commented 7 months ago

Can you send here a video please? And when happens? Like when changing stream or etc

It happens for all commands and for examples that directly stream audio contents as well. Just try it.

Laky-64 commented 7 months ago

Can you try at fly with pytgcalls 1.0.6?

Jaykef commented 7 months ago

okay

Jaykef commented 7 months ago

Can you try at fly with pytgcalls 1.0.6?

Gave this error when call command is used

Screenshot 2023-12-11 at 11 24 02
Laky-64 commented 7 months ago

You need to use an userbot, you can't use a bot to join in a group call

Jaykef commented 7 months ago

sorry but I don't get it, what's the difference between the userbot and bot and how do i create a userbot?

Laky-64 commented 7 months ago

Userbot = using a telegram account as a "bot", the bot is literally what you do as a Bot Father instead

Jaykef commented 7 months ago

okay how do I use telegram account as a bot, I'm new to telegram.

Laky-64 commented 7 months ago

Read telegram documentation and pytgcalls documentation

https://pytgcalls.github.io/

Jaykef commented 7 months ago

I have, does this mean when I'm prompted for phone or bot token I enter phone number instead?

Laky-64 commented 7 months ago

@Jaykef Yes!

Jaykef commented 7 months ago

okay got it, thanks

Laky-64 commented 7 months ago

Ok the I will close this issue as a completed and as "won't fix"