with usernames?
                  
                  
                
yes
 Nxrix
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Nxrix
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  how?
https://core.telegram.org/bots/api#getchat chat_id : @username
Or if you want it for user and fine with using mtproto you can use https://core.telegram.org/method/contacts.resolveUsername
Обсуждают сегодня