Telegram users distribution by region

Telegram provided user distribution by region in their financial report.

The data:
  • Asia – 38%
  • Europe – 26%
  • Middle East – 17%
  • North and South America – 12%
  • Africa – 7%
According to previous data from Pavel Durov, 11% of active users are from India and 7% are from Russia.
India is 8% of signups and 11% of monthly users on Telegram. No other country is bigger on Telegram than India, which is logical given it is the largest free country in terms of population. - Durov

Telegram Update Brings Auto-Delete Feature, Home Screen Widgets, Expiring Invite Links, and More

This update brings an auto-delete timer for messages in any chat, as well as new flexible invite links and faster access to your chats with home screen widgets. Also, groups can now have unlimited members.

Auto-Delete Messages

Some conversations aren't meant to last forever, which is why Telegram users can  delete messages for all participants in a conversation at any time, without a trace. Since 2013, users can also set a self-destruct timer for messages in Secret Chats.

Starting today, you can enable an auto-delete timer in all Telegram chats, which will automatically erase messages for all participants either 24 hours or 7 days after sending.

Auto-delete only applies to messages sent after the timer is set, earlier messages will stay in the chat history. Unlike in Secret Chats, the countdown starts when messages are sent, not read.

To enable the timer on Android, tap ⋮ > Clear History then choose a duration.
On iOS, press and hold a message, tap Select > Clear Chat (top-left) > Enable Auto-Delete.

All messages show a countdown to their deletion time – simply tap on Android or press and hold on iOS to take a look. 

In groups and channels, only admins can enable or modify the timer.

Home Screen Widgets

For instant access to your most important chats, add a Telegram widget to your home screen. The Chat Widget shows a preview of recent messages, while the Shortcut Widget shows only names and profile pictures.

On Android, chats and messages in the widget will always be up to date, and you can further expand the widget to take up more of your screen. On iOS, widgets will only get fresh data occasionally and can't be expanded – this is due to system limitations.

To add a widget, press and hold on your home screen, then tap Widgets on Android or the (+) on iOS and search for Telegram.

Expiring Invite Links

Invite links are a quick and easy way to bring 1 or  1 million people to your groups and channels. Along with the main invite link, owners and admins can now create additional links with a limited durationnumber of uses, or both.

Any invite link can be converted into a scannable QR Code to put on everything from brochures to billboards. You can also see which users joined using each invite link to find out where new members came from or which format has been most effective for growth. 

To view and manage invite links, tap to open your Group or Channel's Profile > Edit > Invite Links. Tap (⋮) or (⋯) to convert a link to a QR Code.

Groups with Unlimited Members

Telegram groups allow up to 200,000 members to exchange messages, media and stickers. Groups that are close to the limit can now convert into Broadcast Groups that allow unlimited members.

Converting to a Broadcast Group makes it so that only admins can send messages, but members can still join voice chats.

Broadcast Groups are ideal for large communities, where people can follow along and catch exclusive interviews, news, or just casual talks.

Improved Chat Import

Our developers are continuing to refine and expand the chat import feature added to Telegram last month. With today’s update, imported messages will now appear sorted by their original date if added to a Telegram chat that is new or has fewer than 1000 messages.

Sorting by original date is currently available when importing to all one-on-one chats, all newly created groups, and smaller existing groups.

Improved Reporting System

Telegram processes millions of user reports each month to make sure the platform is not abused. To help make this more efficient, we will now always ask you to select specific messages when sending a report.

Additionally, all reporting options allow you to add a comment to give more context – like when reporting fake accounts.

And More Animated Emoji

A new update always means new animations, so test out the new characters below by sending a single emoji in any chat.

That's all for today's changes, this message will now delete in 3, 2, 1 … oh. Never mind, this is a blog post, they don't do that yet. 


February 23, 2021
The Telegram Team

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 Import Your Chats From WhatsApp To Telegram


Over 100 million new users joined Telegram this January, seeking more privacy and freedom. But what about the messages and memories that remain in older apps?

Starting today, everyone can bring their chat history – including videos and documents – to Telegram from apps like WhatsApp, Line and KakaoTalk. This works both for individual chats and groups:

To move a chat from WhatsApp on iOS, open the Contact Info or Group Info page in WhatsApp, tap Export Chat, then choose Telegram in the Share menu.

On Android, open a WhatsApp chat, tap ⋮ > More > Export Chat, then choose Telegram in the Share menu:

Move Chats and Save Space

The best part is that the messages and media you move don’t need to occupy extra space. Older apps make you store all data on your device – but Telegram can take up virtually no space while letting you access all your messages, photos and videos anytime you need them.

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