leoMehlig/TDLib-iOS

I want to set SetTdlibParameters  

huang-ju opened this issue · 7 comments

66700448-d2a1c980-ed22-11e9-9fb6-778ac47f760a

66700453-f402b580-ed22-11e9-9d3f-0d8212932470

Initialize settings SetTdlibParameters

or

66705567-04cf1d80-ed5b-11e9-8fb3-d4433a726dab

coordinator.send(SetTdlibParameters())

return Error(code: 400, message: "File "/td.binlog" can't be opened/created for reading and writing")
 
Why is it wrong? I want to set deviceModel

Can you supply a path for databaseDirectory and fileDirectory. The default one from TDLib probably does not work on iOS.

This is the current default when not setting parameters.

The default deviceModel does not take effect。

image

image

How can I set deviceModel to iphone?
 

Can you send example code?

I tried a lot of methods but failed。

Can you check in the logs if the correct json is send? If that is the case you would have to open an issue with tdlib