TUTORIAL_TERMUX98 Telegram 1170
هلو مای فرندز، حالتون چطوره 🤜

🎲 طبق قولی داده بودم، بریم سراغ
اضافه کردن چنل اسپانسری به MTProto در ترموکس

1⃣ نصب Python:
برای استفاده از برخی از اسکریپت‌ها، باید Python را نصب کنید. در ترموکس این کار را با دستور زیر انجام دهید:
  
   pkg install python
  

2⃣ نصب کتابخانه MTProto:
برای استفاده از MTProto، باید کتابخانه مناسب را نصب کنید. می‌توانید از pip برای نصب کتابخانه‌ها استفاده کنید:
  
   pip install telethon
  

3⃣ ایجاد یک اسکریپت Python:
یک فایل جدید بسازید، به عنوان مثال sponsor_channel.py و کد زیر را در آن قرار دهید:
  
   from telethon import TelegramClient

   # @tutorial_termux98

   api_id = 'API_ID'
   api_hash = 'API_HASH'

   client = TelegramClient('session_name', api_id, api_hash)

   async def main():
       await client.start()
       # @tutorial_termux98
       await client.send_message('sponsor_channel_username', 'این یک پیام اسپانسری است!')

   with client:
       client.loop.run_until_complete(main())
  

📌 نکته برای تنظیم API ID و API Hash:
🔸به سایت تلگرام بروید و API ID و API Hash خود را دریافت کنید. مقادیر را در کد بالا جایگزین کنید.

💢 اجرای اسکریپت:
 در ترموکس دستور زیر را برای اجرای اسکریپت وارد کنید:
   python sponsor_channel.py
  

▪️▫️◾️◽️◼️◻️
🆑 @tutorial_termux98
👍14🏆1



tgoop.com/tutorial_termux98/1170
Create:
Last Update:

هلو مای فرندز، حالتون چطوره 🤜

🎲 طبق قولی داده بودم، بریم سراغ
اضافه کردن چنل اسپانسری به MTProto در ترموکس

1⃣ نصب Python:
برای استفاده از برخی از اسکریپت‌ها، باید Python را نصب کنید. در ترموکس این کار را با دستور زیر انجام دهید:
  

   pkg install python
  

2⃣ نصب کتابخانه MTProto:
برای استفاده از MTProto، باید کتابخانه مناسب را نصب کنید. می‌توانید از pip برای نصب کتابخانه‌ها استفاده کنید:
  
   pip install telethon
  

3⃣ ایجاد یک اسکریپت Python:
یک فایل جدید بسازید، به عنوان مثال sponsor_channel.py و کد زیر را در آن قرار دهید:
  
   from telethon import TelegramClient

   # @tutorial_termux98

   api_id = 'API_ID'
   api_hash = 'API_HASH'

   client = TelegramClient('session_name', api_id, api_hash)

   async def main():
       await client.start()
       # @tutorial_termux98
       await client.send_message('sponsor_channel_username', 'این یک پیام اسپانسری است!')

   with client:
       client.loop.run_until_complete(main())
  

📌 نکته برای تنظیم API ID و API Hash:
🔸به سایت تلگرام بروید و API ID و API Hash خود را دریافت کنید. مقادیر را در کد بالا جایگزین کنید.

💢 اجرای اسکریپت:
 در ترموکس دستور زیر را برای اجرای اسکریپت وارد کنید:
   python sponsor_channel.py
  

▪️▫️◾️◽️◼️◻️
🆑 @tutorial_termux98

BY دستورات ترموکس || Termux


Share with your friend now:
tgoop.com/tutorial_termux98/1170

View MORE
Open in Telegram


Telegram News

Date: |

The imprisonment came as Telegram said it was "surprised" by claims that privacy commissioner Ada Chung Lai-ling is seeking to block the messaging app due to doxxing content targeting police and politicians. During the meeting with TSE Minister Edson Fachin, Perekopsky also mentioned the TSE channel on the platform as one of the firm's key success stories. Launched as part of the company's commitments to tackle the spread of fake news in Brazil, the verified channel has attracted more than 184,000 members in less than a month. Informative While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. In the “Bear Market Screaming Therapy Group” on Telegram, members are only allowed to post voice notes of themselves screaming. Anything else will result in an instant ban from the group, which currently has about 75 members.
from us


Telegram دستورات ترموکس || Termux
FROM American