Правильная: apt install beef.
from pyrogram import Client
client = Client(api_hash=, api_id=, name="pyrogram")
client.start()
client.send_message("me", "шшщо")
In [6]: def custom_sum(a: int, b: int) -> int:
...: return a + b + 12
...:
In [7]: custom_sum?
Signature: custom_sum(a: int, b: int) -> int
Docstring: <no docstring>
File: ...
Type: function
In [8]: %pdef custom_sum
custom_sum(a: int, b: int) -> int
import requests
from bs4 import BeautifulSoup
sait = 'https://web.telegram.org/k/#@'
x = 't.me/gayshiit'
y = x.index('/')
x = x[y+1:]
sait += x
soup = BeautifulSoup(requests.get(
url='https://web.telegram.org/k/#@gayshiit',
headers={'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36'}
).text)
print(soup)
print(soup.find(class_="i18n"))
ls -d /var/www/repocrm3/RepositoryCRM3/
Расширение файла (opus или aac) выбрать в зависимости от кодека аудиодорожки ("opus" или "mp4a*").
Ещё в send_audio можно передать title, caption и др.