Skip to content

AI4Trust-project/data-collector-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-collector-telegram

To set up access to the Telegram API, one has to:

  • Follow theses instructions to register.
  • Set the environment variables AI4TRUST_PHONE_NUMBER, AI4TRUST_API_ID and AI4TRUST_API_HASH using those provided at the end of registration.
  • Locally, run the following script just once
    client = collegram.client.connect(api_id, api_hash, phone_nr)
    print(collegram.client.string_session_from(client.session))
    and set the env variable AI4TRUST_TG_SESSION using its output. This one time, you'll get prompted for a code received by message, in order to grant access to your account to your API client. Saving the session string allows you not to have to go through this prompt again in the future.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages