P00LS Games SDK Help

Authentication

The SDKs authenticate automatically the player through the telegram implicit auth, so you have nothing to do on your end. On top of that, the sdk provides some useful methods.

User profile

private void Awake() { var userProfile = p00lsGamesSdk.GetUserProfile(); gameState.username = userProfile.firstName; }

GetUserProfile returns

public class UserProfile { public string userId; public string firstName; public string username; public bool isPremium; public string game; public string? referrer; }
const userProfile = p00lsSdk.auth.userProfile;

On telegram, only the firstName is mandatory information, so everything but userId, firstName and game can be null.

game is the internal identifier of your game.

referrer is only present if the user was referred by another user. Check referral section to know more.

Last modified: 18 November 2024