UserName from fragment )
                  
                  
                
 MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  For example if I get participants of a group if they have some username like @firend and @dearFarshad I can get them in a list but what should I do for channel ?
The same thing? Channel object has .usernames same as User, or you mean list purchasd usernames
 MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  I mean channel purchased usernames list
get_entity(channel).usernames should have what you want.
 MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  Thank you very much 🤩
 MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  Can I do it with a bot ?with https://core.telegram.org/method/channels.updateUsername
only the owner can set usernames, and fragment ones need toggleUsername, not that
 MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          MMDRZA
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  Can you help me with channel id instead of channel? #question2 I want to get all the fragment usernames connected to the channel, is it possible to do this?
1- it's the same thing. get_entity(channel_id or username).usernames 2- same above, .usernames (with 's', hash is the collectable usernames)
Обсуждают сегодня