Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Telegram Users Can Now Record Live Streams, New Update Brings Chat Themes, More

Today's update lets you set different themes for individual chats, share your feelings with loved ones using interactive emoji with full screen effects, see detailed read receipts in groups and record video and audio from live broadcasts.

Chat Themes
— Choose one of 8 preset themes for any of your private chats;
— Tap the (⋯) button › "Change Colors" to pick a theme;
— Both chat participants will see the same theme in that chat – on all their devices;
— All chat themes have day and night versions and will follow your overall dark mode settings.

Record Live Streams and Video Chats
— Record video and audio from live broadcasts in your group or channel;
— Admins can start recording from the Settings menu (…);
— Choose between recording in portrait or landscape orientation;
— Finished recordings are sent to the admin's Saved Messages and can be easily shared;
— See that a stream is being recorded from the red dot next to its title.

Read Receipts in Small Groups
— Select one of your outgoing messages in small groups to see who recently viewed it;
— To protect privacy, read receipts are only stored for 7 days after the message was sent.

Interactive Emoji
— Some animated emoji now have fullscreen effects when tapped – like 🎆, 👍, 🎉, 💩, 🎈 and ❤️;
— If your chat partner also has the chat open, they will see the effects when you tap the emoji.

Chat Themes

Telegram has dozens of features to organize your chats and customize their appearance, from Chat Folders to Animated Backgrounds. In this update, coordination and decoration come together with new themes for individual chats.

Our designers created 8 new themes that you can apply to specific private chats. Each of the new themes features colorful gradient message bubbles, beautifully animated backgrounds and unique background patterns.
Both you and your chat partner can choose the theme for both sides and make any conversation easy to recognize, even when you can't find your glasses. This way you can set different themes for chats with co-workers and family members, so you won't accidentally send that video to your boss again.
To set a theme for your chat on Android, tap the Chat Header > ⋮ > Change Colors. On iOS, tap the Chat Header > ⋯ > Change Colors. Your chat partner will see the theme if they are using the latest version of Telegram.
Each theme comes with a day and night version and will follow your app's night mode settings – whether you keep it dark all day, or have your chats follow the sun.

These first 8 themes are just the beginning – our designers are already working on adding more.

Interactive Emoji

We love animating emoji, but there are times when even a big red beating heart – that makes your phone vibrate with each beat! – is simply not enough to express your feelings.

With a little code, a little drawing and a lot of dark magic, we've created a new way of sharing emotion in real time. Send a single 🎆 🎉 🎈 👍 💩 or ❤️ to any private chat, then tap on the animated emoji to unleash a fullscreen effect.

If both you and your chat partner have the chat open, the animations and vibrations play simultaneously on your devices, so you feel close even when you're far apart.

Your chat partner will only see the effects if they are using the latest version of Telegram.

Our artists are already back in the dungeons, working on new fullscreen effects for more animated emoji.

Read Receipts in Small Groups


Both chat themes and interactive emoji currently only work in private chats. But this update also includes a big change for groups.

Group messages are marked as read (✓✓) as soon as one other member sees them. In small groups, you can now also select a message you sent to see which group members have read it.
To protect users' privacy, read receipts in groups are only stored for 7 days after the message was sent. It is not Telegram's business to keep a record of everything you've ever seen.

Record Live Streams and Video Chats

Telegram hosts millions of communities that can create live events for unlimited viewers. Whether it's a once-in-a-lifetime concert or an everyday algebra class, admins can now record Live Streams and Video Chats to publish them for those who missed the live version.
Admins can start a recording right from the Live Stream or Video Chat menu – with options to record Video and Audio or Only Audio. To record video, choose an orientation for the final video file, Portrait or Landscape. After you finish recording or end the broadcast, the file is instantly uploaded to your Saved Messages.
Tap ⋮ or ⋯ to open the broadcast menu and start recording. While recording, a red dot appears next to the title of the broadcast.
And that should give you enough things to do until we're back with the next update. As always, it shouldn't take us long.

Telegram Bot Video Streaming - Host On Heroku, Railway & Qovery

Telegram bot to stream videos in telegram voice chat for both groups and channels. Supports live steams, YouTube videos and telegram media.

SUPPORT

SUPPORT CHANNEL: @subin_works
SUPPORT GROUP: @InFoTelGroup

Features

  • Playlist, queue.
  • Supports Play from Youtube Playlist.
  • Change VoiceChat title to current playing song name.
  • Supports Live streaming from youtube
  • Play from telegram file supported.
  • Starts the startup stream automatically on startups and restarts.
  • Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
  • Automatic restart even if heroku restarts.
  • Support exporting and importing playlist.

Heroku Config Vars:

  1. ADMINS: @TGIdsBot
  2. API_HASH & API_ID: my.telegram.org/apps
  3. BOT_TOKEN: @BotFather
  4. CHAT: @TGIdsBot
  5. LOG_GROUP: @TGIdsBot
  6. SESSION_STRING: TGsession.infotelbot.com
  7. STARTUP_STREAM: https://www.youtube.com/watch?v=MkNeIUgNPQ8
Important Note: We should create only one bot in heroku app account, otherwise the bot will not work. If you want to create more bots then you should create separate heroku app account or renew with premium membership by giving money.

Railway Config Vars:

  1. API_HASH & API_ID: my.telegram.org/apps
  2. BOT_TOKEN: @BotFather
  3. CHAT: @TGIdsBot
  4. SESSION_STRING: TGsession.infotelbot.com
  5. LOG_GROUP: @TGIdsBot
  6. ADMINS: @TGIdsBot
  7. STARTUP_STREAM: https://www.youtube.com/watch?v=MkNeIUgNPQ8
Warning: Railway.app may ban your railway account if you tried to play DMCA contents. Its is hereby forewarned that we wont be responsible for any loss caused to you. Proceed at your own risk.

Qovery Config Vars:

  1. ADMINS: @TGIdsBot
  2. API_HASH & API_ID: my.telegram.org/apps
  3. BOT_TOKEN: @BotFather
  4. CHAT: @TGIdsBot
  5. LOG_GROUP: @TGIdsBot
  6. SESSION_STRING: TGsession.infotelbot.com
  7. STARTUP_STREAM: https://www.youtube.com/watch?v=MkNeIUgNPQ8

Note

Note To A So Called Dev:
Kanging this codes and and editing a few lines and releasing a V.x of your repo wont make you a Developer. Fork the repo and edit as per your needs.

How To Make Own Telegram 24*7 Music Player On Qovery

A Telegram Bot to Play Audio in Voice Chats With YouTube and Deezer support. Supports Live streaming from YouTube

Special Features
  • Playlist, queue
  • Supports Live streaming from youtube
  • Supports both deezer and youtube to search songs.
  • Play from telegram file supported.
  • Starts Radio after if no songs in playlist.
  • Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
  • Automatic restart even if heroku restarts.
NOTE: If you are deploying more bots/apps in same environment, set scope of environment variable as for Application.


Variable:
  1. API_ID : Get From my.telegram.org
  2. API_HASH : Get from my.telegram.org
  3. BOT_TOKEN : @Botfather
  4. SESSION_STRING : tgsession.infotelbot.com
  5. CHAT : ID of Channel/Group where the bot plays Music Link.
  6. LOG_GROUP : Group to send Playlist, if CHAT is a Group Link
  7. ADMINS : ID of users who can use admin commands.
  8. ARQ_API : Get it for free from @ARQRobot, This is required for /dplay to work.
  9. STREAM_URL : Stream URL of radio station or a youtube live video to stream when the bot starts or with /radio command.
  10. MAXIMUM_DURATION : Maximum duration of song to play.(Optional)
  11. REPLY_MESSAGE : A reply to those who message the USER account in PM. Leave it blank if you do not need this feature.
  12. ADMIN_ONLY : Pass Y If you want to make /play and /dplay commands only for admins of CHAT. By default /play and /dplay is available for all.
NOTE: Make sure you have started a Voice Chat in your Group before deploying.

FREE?
Not completely free, but works on credit system.
On sign up you will get $45 credits $0.000006 will be consumed for each seconds. So total days will be around 3 months if only a single app. You can get free credits by being active on their community

How To Share Video With Audio on Telegram Desktop - Voicemeeter

How To Make Own Telegram Radio & Music Player - Telegram Voice Chat Bot

An Telegram Bot to Play Radio/Music in Channel or Group Voice Chats.

Special Features

  • Playlist, queue, 24x7 radio stream
  • Loop one track when there is only one track in the playlist
  • Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
  • Show current playing position of the audio
  • Control with buttons and commands
  • Download songs from YouTube as audio
Support Channel: @AsmSafone
Support Group: safothebot

Requirements

Heroku Vars:

  1. ADMINS: @TGIdsBot
  2. API_HASH & API_ID: my.telegram.org
  3. BOT_TOKEN: @Botfather
  4. CHAT: @TGIdsBot
  5. LOG_GROUP: @TGIdsBot [if Channel then leave blank]
  6. SESSION_STRING: tgsession.infotelbot.com
  7. STREAM_URL: https://www.infotelbot.com/2021/09/Stream-link-telegram-bot.html

Radio Garden [ Open Chrome Browser]


Note:

  • Enable the worker after deploy the project to Heroku.
  • Bot will starts radio automatically in given CHAT with given STREAM_URL after deploy.
  • 24x7 Music even if Heroku restarts, radio stream restarts automatically.
  • To play a song just send the audio file to Bot or reply to an audio with /play to start playing it in the voice chat.
  • To download audio you can use @SafoneMusicBot or /song command to the bot.
  • Use /help to know about other commands & its usage.

Credits

Asm Safone [Dev]
Dash Eclipse [For tgvc_userbot]
Marshal X [For pytgcalls]

How To Create Telegram Auto File Forward Bot

Auto file forward bot. Without Admin Permission in FROM_CHANNEL Only Give Permission In your Telegram Personal Channel

Support Group: @DxHelpDesk
REPO: https://github.com/Jijinr/Frwdit

Variables
  1. API_HASH & API_ID: https://my.telegram.org
  2. BOT_TOKEN: @BotFather
  3. CAPTION:  • Channel :- @userame • Group :- @userame
  4. FROM_CHANNEL: Enter Channel username Eg:- @username
  5. OWNER_ID: @TGIdsBot
  6. SESSION: https://tgsession.infotelbot.com/
  7. SKIP_NO: Enter File Skiping Number default number '0'
NOTE: if you are trying to forward large number of files or any error occurred while forwarding you can use SKIP_NO specify the number of messages you wanted to skip when retrying the process.

     8. TO_CHANNEL: @TGIdsBot

Deploy in your vps

git clone https://github.com/Jijinr/Frwdit cd Frwit 
pip3 install -r requirements.txt # 
<Create Variables appropriately> 
python3 main.py

Please fork this repository don't import code 
Made with Python3 (C) @DforDarkAngel 
Copyright permission under GNU GENERAL PUBLIC LICENSE

How To Create Telegram Unlimited Filter bot

An advanced Filter Bot with nearly unlimited filters!

Support Group: @TroJanzSupport

Features

Nearly unlimited filters
Supports all type of filters
Can save button filters directly (Rose Bot Feature)
Supports multiple PM connections
And all other features of a Filter Bot :D
Deploy the bot and start adding your filters :)


Config

How to use the bot - Watch Video

1. Add bot to your group with admin rights.
2. Add your filters :)

Bot Commands 

(You need to be an admin or Auth User in order to use these commands)

Filter Commands
/add <filtername> <filtercontent> - To add your filter. You can also reply to your content with /add command.

/del <filtername> - Delete your filter.
/delall - Delete all filters from group. (Group Owner Only!)
/viewfilters - List all filters in chat.

Connection Commands
/connect groupid - Connects your group to PM. You can also simply use, /connect in groups.
/connections - Manage your connections. (only in PM)

Extras
/status - Shows current status of your bot (Auth User Only)
/id - Shows ID information
/info <userid> - Shows User Information. Also use /info as reply to some message for their details!

Credit: @PrGofficial

How To Make Telegram Automated Filter Bot V2 | Unlimited Filters & Channels

You can call this as an Auto Filter Bot if you like :D. Bot simply search for the files from provided channel according to given query and gives link to those files as buttons!
Any Bugs or Errors or Suggestions, Report: @TroJanzSupport
REPO: https://github.com/TroJanzHEX/Auto-Filter-Bot-V2

How to use the bot

  • Add bot to your group with admin rights.
  • Add bot to all channels which you want to link with all admin rights!

Bot Commands - Works in Group only

(You need to be a Auth User in order to use these commands)
  • /add channelid - Links channel to your group. or /add @channelusername - Links channel to your group.
  • /del channelid - Delinks channel from group or /del @channelusername - Delinks channel from group
NOTE : You can get connected channel details by /filterstats
  • /filterstats - Check connected channels and number of filters.
  • /delall - Removes all connected channels and filters from group!

Deploy in your vps

git clone https://github.com/TroJanzHEX/Auto-Filter-Bot 
cd Auto-Filter-Bot -V2
pip3 install -r requirements.txt 
# <Create config.py appropriately> 
python3 main.py

Configs

APP_ID & API_HASH - my.telegram.org
AUTH_USERS: @MissRose_bot
DATABASE_NAME: Cluster0
DATABASE_URI: https://cloud.mongodb.com/
DOC_SEARCH: Should bot search for document files ( Give 'yes' or 'no' )
MUSIC_SEARCH: Should bot search for music files ( Give 'yes' or 'no' )
TG_BOT_TOKEN - @BotFather
TG_USER_SESSION - https://tgsession.infotelbot.com/
VID_SEARCH: Should bot search for video files ( Give 'yes' or 'no' )
MAINCHANNEL_ID - @ChannelIDHEXbot

Credits


How To Make Telegram Automated Filter Bot | Unlimited Filters

You can call this as an Auto Filter Bot if you like :D. Bot simply search for the files from provided channel according to given query and gives link to those files as buttons!
Any Bugs or Errors or Suggestions, Report: @TroJanzSupport

NOTE : If the channel is not created by the user whose string is generated, add that user to your channel

How to use the bot

  1. Add user account to your channel !
  2. Add bot to group with admin rights.
  3. Deploy the bot.
  4. Once deployed and bot is started, send a message to channel (must do step)
  5. Bot will work now :)

Deploy in your vps

git clone https://github.com/TroJanzHEX/Auto-Filter-Bot 
cd Auto-Filter-Bot 
pip3 install -r requirements.txt 
# <Create config.py appropriately> 
python3 main.py

Configs

APP_ID  & API_HASH - my.telegram.org
MAINCHANNEL_ID - @ChannelIDHEXbot

Credits : https://github.com/pyrogram/pyrogram

How To Make Telegram Music Voice Chat Bot On Heroku

To make this repo compatible with heroku and avoid unnecessary conflicts we have to break down this whole project into two different parts and deploy as different apps so let's get started.


Bot
  • Here is the place where this repo (which you are reading this readme) comes into picture
  • As usual hit deploy to heroku button
  • Enter bot token and websocket url (which we got from the above step)
  • click deploy and sit back until docker finishes the build
  • turn on your dyno (if its off)
  • if everything goes fine you should see something like @username is running... in the log
  • Voila!

How To Make Telegram Music Voice Chat Bot On zeet.co

REPO Voice Chat: https://github.com/rojserbest/VoiceChatPyroBot (Credit)

REPO: https://github.com/rojserbest/vcpb-zeet-deploy

Remote Desktop (Android): https://play.google.com/store/apps/details?id=com.microsoft.rdc.android

Deploying

Sign in with your Github account and fork this repo.

  • Go here Zeet
  • Sign into Zeet with your Github account
  • Now Choose New Project and choose GitHub repo and give access to your fork ,then click on Deploy Now.
  • Now Zeet will automatically starts building from the Dockerfile. Wait for the build to finish.
  • After completing the build you have to configure the Environment Variables.

Configuring

  • You will need to set the following Environment Variables for your VoiceChatPyroBot

API_ID :Get your api id from my.telegram.org

API_HASH :Get your api hash from my.telegram.org

TOKEN :Get your bot token from @BotFather

SUDO_USERS : A list of user ids which can pause, skip and change volume, Enter each id's seperated by a space.

GROUP  : The id of the group where your bot plays.

MONGO_DB_URI : your MongoDB URI (you can get one for free in their official website, sign up, create a cluster and a database named "vcpb")

USERS_MUST_JOIN : If true, only users which are in the group can use the bot.

LANG : your bot language, choose an available language code in VoiceChatPyroBot

DUR_LIMIT: Max video duration in minutes for downloads

⚠️ The Following variables are Compulsory (Others will use default values if not set)

API_ID
API_HASH
TOKEN
SUDO_USERS
GROUP  (If USERS_MUST_JOIN is set to True)
  • If the remaining values are not set then the Default values are:
 MONGO_DB_URI = None
 USERS_MUST_JOIN = False
 LANG = en (english)
 DUR_LIMIT = 10
  • After setting the Evnironment Variables save them and Wait for the Deploy to finish.

  • Once Deploying is finished check if your bot is working. If not make sure that you set the Environment variables Correct.

  • Once all are perfect now its time to setup XRDP to strat RDP connection.

  • Go to Your Zeet dashboard and select the deployed app and start the Zeet Terminal.

  • Start xrdp by running the bash script xrdp-start.sh by running /xrdp-start.sh

  • Once its started succesfully close the terminal and copy the PUBLIC IPS from Zeet Dashboard

  • Open a remote desktop client and login to your user. The default credentials are:-

  •             ls
                /xrdp-start.sh

    Username :vcpb 
    Password :music
  • If you want to edit the username and password , you can do it by editing the values in createusers.txt file. the foremat is username:password:is SUDO or not(Y/N)

    • ℹ️ If you are changing the default user , you may need to change the same in script.sh also .
  • Once after loging in , you can see a file named Telegram in /home/vcpb/Telegram Directory (You may see some error messages, Since many mate utils are not preset , ignore(delete) those.)

  • Execute it and login into your telegram account and Join a Voicechat.

    • ℹ️ No need to change the default microphone as MySink is already default Mic.

Bot Commands

Inorder to command the bot send one of the mentioned commands below with a / prefix

start - start the bot

song - check the playing song

volume - check the current volume

queue - check songs in the queue

pause - pause the playing song (sudo users only)

resume - resume the paused song (sudo users only)

play - same as resume (sudo users only)

skip - skip the playing song (sudo users only)

stream - stream a radio (sudo users only)

cleardownloads - delete all downloads (sudo users only)

playlist - see the items in the playlist (sudo users only)

clear_playlist - clear the items in the playlist (sudo users only)

play_playlist - play the items in the playlist (sudo users only)

How To Host Telegram Bot on Scaleway

1. Lets create a Scaleway Account first!

Link: https://console.scaleway.com/register

Enter required details and signup with Scaleway !

Card verification is required for signup! You'll be charged some amount for verification and the same will be refunded within few hours. So don't worry. 

2. Making an instance in Scaleway

Choose appropriate plan!

Creating a SSH key
Download PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

*Create a new SSH Public key and copy paste it in Instance config page.
*Save it as our Private key.
*Create instance.

3. Connecting to the instance!

- Connecting to instance with our SSH key

        hostname : root@ipaddress

- You'll be logged in as a root user!

- Create a new user with sudo privileges ( cause it's better that way)

        sudo adduser  <newusername>

        sudo usermod -aG  sudo  <newusername>

        su - <newusername>

- Now whenever you login to your instance, change to your user by;

        su - <newusername>

Some required commands,

         sudo apt update && sudo apt upgrade


NOTE : Use Enter key to run your commands. Use right click to paste your copied command into terminal.

4. Setting up your repository

Configure Marie Bot Repo;

Clone the source code of Marie

Source code : https://github.com/prgofficial/Marie-2.0-English

Create config.py file from sample_config.py

#Bot Token: from Bot Father
#Owner ID: from Rose ( /id )
#Owner username: Any name
#Database URL: Install Postgres server in our Instance and get

5. Install and setup a Postgres Server

Connect to your instance, then run;
         sudo apt-get update
         sudo apt-get install postgresql postgresql-contrib

Give sudo permission to user
         sudo usermod -aG sudo postgres

Set a new password
         sudo passwd postgres
Password will be invisible, don't worry!

Login to Postgres
         su - postgres

Create new user for psql
         createuser --interactive --pwprompt

# enter a name for user
# enter a password for user
# give superuser power


You can give any name and password!!

Create a database and assign user
        createdb -O <username> <newdbname>
;

Allow remote access
         nano /etc/postgresql/12/main/postgresql.conf

Uncomment, and change the value;

#listen_addresses = 'localhost'
to
listen_addresses = '*'


This will allow Postgres connections from anyone.
USE ctrl + o and press enter to save the file and ctrl + x to exit the editor


Allow Connections from everyone 
         nano /etc/postgresql/12/main/pg_hba.conf

Modify this section;

# IPv4 local connections:

host all all 127.0.0.1/32 md5

to;

# IPv4 local connections:

host all all 0.0.0.0/0 md5

this will allow anyone to connect to your db using the username and password!
USE ctrl + o and press enter to save the file and ctrl + x to exit the editor

Allow port 5432
         sudo ufw allow 5432/tcp

Restart postgres to apply changes
         sudo systemctl restart postgresql

Now, your DB Uri will be;
        postgres://username:pw@hostname:port/dbname

6. Hosting Marie repo

Connect to your instance using putty

connect again using putty or;

press ctrl + a + d to go back to your user from our current screen

Using screens is a better way to run your programs.
        screen -S marie

This will open a new screen inside our main terminal.

Clone your source code to your instance

        git clone <your_repo_url>

Enter your Github username and password and hit enter!

Change your current directory

        cd <reponame>

Install required dependencies.
        sudo apt install python3-pip
        pip3 install -r requirements.txt

Start your BOT !
        python3 -m tg_bot

Your BOT is ready to use :)
now your bot is ready with nearly unlimited filters....
:) thank you

Some Usefull commands;

> To detach from current screen
Ctrl + a + d ( hold Ctrl and press a and d sequentially )

> To see all active screens
screen -ls

> To attach to a screen
screen -r number

>To detach from a screen
screen -d number

>To logout from terminal with BOT running in screen
Ctrl + a + d

Credit: @PrGofficial
Documented by: @PrGofficial

How To Host Telegram Bot on Digital Ocean


How to host telegram Marie bot on Digital Ocean with Unlimited Filters by hosting a Postgres server ourselves

* No Dyno Issus 
* Unlimited Filter 
* Better Speed 
* Less response time 
Your BOT will be up and running as long as you pay for VPS 😋

1. Lets create a Digital Ocean Account first!

Digital Ocean: https://cloud.digitalocean.com/registrations/new

Enter required details and signup with Digital Ocean!

Card verification is required for signup! You'll be charged some amount for verification and the same will be refunded within few hours. So don't worry. 

To avail digital ocean 100$ free credits promo offer, register and sign in through this link : https://m.do.co/c/aa2ff0eeaa5e

2. Making an instance in Digital Ocean

Creating a SSH key

Download PuTTY ; https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Create a new SSH Public key and copy paste it in Instance config page.

Save it as our Private key.

Deploy instance.

3. Connecting to the instance!

- Connecting to instance with our ssh key

        hostname : root@IPV4address

- You'll be logged in as a root user!

- Create a new user with sudo privileges ( cause it's better that way)

        sudo adduser <newusername>

Enter a new username and password (typed password will be invisible) and press enter for all other values to leave it to default

        sudo usermod -aG sudo <newusername>

        su - newusername

- Now whenever you login to your instance, change to your user by;

        su - newusername

4. Setting up your repository

Configure Marie Bot Repo;

Clone the source code of Marie

Source Code : https://github.com/prgofficial/Marie-2.0-English

Create config.py file from sample_config.py

        Bot Token : from Bot Father

       Owner ID : from Rose ( /id )

        Owner username : Any name

Database Uri : Install postgres server in our Instance and get

5. Install and setup a Postgres Server

Connect to your instance, then run;

        sudo apt-get update

        sudo apt-get install postgresql postgresql-contrib

Give sudo permission to user

        sudo usermod -aG sudo postgres

Set a new password

        sudo passwd postgres

password will be invisible, dont worry!

Login to postgres

        su - postgres

Create new user for psql

        createuser --interactive --pwprompt

        # enter a name for user

        # enter a password for user

        # give superuser power

you can give any name and password!!


Create a database and assign user

        createdb -O <username> <newdbname>

Allow remote access

        nano /etc/postgresql/12/main/postgresql.conf

Uncomment, and change the value 

        #listen_addresses = 'localhost' 
To 
         listen_addresses = '*'

this will allow Postgres connections from anyone.

USE CTRL + O and press enter to save the file and CTRL + X to exit the editor


Allow Connections from everyone

        nano /etc/postgresql/12/main/pg_hba.conf

Modify this section;

        # IPv4 local connections:

        host all all 127.0.0.1/32 md5
TO;
        # IPv4 local connections: 
        host all all 0.0.0.0/0 md5

this will allow anyone to connect to your DB using the username and password!

USE CTRL + O and press enter to save the file and CTRL + X to exit the editor 


Allow port 5432

            sudo ufw allow 5432/tcp

Restart postgres to apply changes

        sudo systemctl restart postgresql

Now, your DB URL will be;

        postgres://username:pw@hostname:port/dbname

6. Hosting Marie REPO

Connect to your instance using putty

connect again using putty or;

Press CTRL + A + D to go back to your user from our current screen


Using screens is a better way to run your programs.

        screen -S marie

This will open a new screen inside our main terminal.


Clone your source code to your instance

        git clone your_repo_url

Enter your github username and password and hit enter!

Change your current dirrectory

        cd reponame

Install required dependencies.

        sudo apt install python3-pip

        pip3 install -r requirements.txt

Start your BOT !

        python3 -m tg_bot


Your BOT is ready to use :)

Now your bot is ready with nearly Unlimited Filters....


:) thank you


Some Usefull commands;

> To detach from current screen
Ctrl + a + d ( hold Ctrl and press a and d sequentially )

> To see all active screens
screen -ls

> To attach to a screen
screen -r number

>To detach from a screen
screen -d number

>To logout from terminal with BOT running in screen
Ctrl + a + d

Credit: @PrGofficial
Documented by: @PrGofficial

DON'T MISS

beta, news, bot, features, bot, tutorial, Userbot, telegram
© All Rights Reserved
Made With By InFoTel