Whatsapp sender for Tally(dll)

Discussion in 'Tally Integration' started by teja varma, Dec 20, 2019.

    
?

Do you want Whatspp Sender for tally ?

Poll closed Dec 27, 2019.
  1. Intrested

    100.0%
  2. Not Intrested

    0 vote(s)
    0.0%
  3. Its already available

    0 vote(s)
    0.0%
  1. Jenny

    Jenny Active Member


    Thanx a lot.....
     


  2. Jenny

    Jenny Active Member


    I think its possible to add "whatsapp-group"


    namespace WhatsAppApi.Response
    {
    public class WaGroupInfo
    {
    public readonly string id;
    public readonly string owner;
    public readonly long creation;
    public readonly string subject;
    public readonly long subjectChangedTime;
    public readonly string subjectChangedBy;

    internal WaGroupInfo(string id)
    {
    this.id = id;
    }

    internal WaGroupInfo(
    string id,
    string owner,
    string creation,
    string subject,
    string subjectChanged,
    string subjectChangedBy)
    {
    this.id = id;
    this.owner = owner;
    long.TryParse(creation, out this.creation);
    this.subject = subject;
    long.TryParse(subjectChanged, out this.subjectChangedTime);
    this.subjectChangedBy = subjectChangedBy;
    }
    }
    }
     


  3. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    For Api...
     


  4. teja varma

    teja varma Active Member


    I think its possible with API , some API providers are providing that option as well
    but we are not using any API , it is based on Web Scrapping through Selenium Library using Chrome Driver...
     


  5. Jenny

    Jenny Active Member


    i have an whatsapp Api can you see that?
     


  6. Jenny

    Jenny Active Member


    .nupkg file
     

    Attached Files:



  7. Jenny

    Jenny Active Member


    csproj
     

    Attached Files:



  8. teja varma

    teja varma Active Member


    i didn't found any reference or methods to Send messages to group
    better to contact you API service provider they will give you the required methods and interfaces to implement this
     


  9. Jenny

    Jenny Active Member


    @Jay can u send me your source code ?
     


  10. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Work in Progress...
    :)
     
    Frz and Jenny like this.


  11. mohsin khan

    mohsin khan New Member


    dear member how to use this api method in following code.

    [#Form: Sales Color]


    On : Form Accept : Yes : CALL : SendWhatsapp

    [Function: SendWhatsapp]

    Variable: PrintFileName :String
    Variable: defaultfilepath :String:$$String:$Vouchertypename+"_"+$$String:$vouchernumber +$$String:".pdf"
    Variable: ReceiverContact :String
    Variable: Exportedfilepath :String
    Variable:urlid:String;:$$String:"https://meo.co.in/MessagingAPI/sendFileText.php"
    Variable: LOGINID :String
    Variable: password :String
    Variable: file :String




    01 :Query Box:"Do you want to Whatsapp the invoice?":Yes:No
    02 :If:$$LastResult
    03 : SET : PrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber ; Export Location path
    04 : SET : ReceiverContact :$LedgerMobile:Ledger:$PartyLedgerName
    20 : SET : SVExportFormat : $$SysName:pDF
    40 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat
    50 : SET : SVOpenFileAfterExport : No
    60 :EXPORT REPORT :.: TRUE
    65 :SET :Exportedfilepath:$$GetFileFullPath:##defaultfilepath
    70 :Set:urlid:"https://meo.co.in/MessagingAPI/sendFileText.php"
    80 :Set:LOGINID :$$String:9414107864
    90 :Set:password:unique-1983
    100 :Set:FILE:$$GetFileFullPath:##defaultfilepath
    101 :Log:$$LastResult
    102 : End If
    103 : Return








    my api like this
    POST METHOD API - SEND MESSAGE
    URL:
    https://meo.co.in/MessagingAPI/sendFileText.php
    PARAMETER :
    loginId : login id of meo
    password : password of meo
    mobile_number : designation number with country code
    message : your text
    file : your file
     


  12. Vineet More

    Vineet More New Member


    Hi,

    Will the TDL only work in Licensed Version and not in educational mode?

    Secondly, I am getting below mentioned error in Tally Educational Mode when imported the Tdl file:

    upload_2020-2-1_20-44-3.png

    Can you please suggest how to proceed further?
     


  13. Jignesh Shah

    Jignesh Shah New Member


    ca
     


  14. Jignesh Shah

    Jignesh Shah New Member


    i am interested ,call me on 9820700301 urgently
     


  15. ASHOK

    ASHOK Member


    Sir my problam I attached the screen shot
     


  16. ASHOK

    ASHOK Member



  17. teja varma

    teja varma Active Member


    please give space between filename and /codebase
    for you it should be - C:\Tally.ERP96.6\Release\TallyWhatsappsender.dll /codebase
     


  18. ASHOK

    ASHOK Member


    thanks but invoice not attach
     


  19. ASHOK

    ASHOK Member


    Error.jpg sir not attach the invoice show the error
     


  20. teja varma

    teja varma Active Member


    the problem is in TDL Code I think you are not passing enough parameters for COM Interface
    Check the Sample code I attached in GitHub repo else post your Tdl code for further debugging
     


  21. ASHOK

    ASHOK Member


    sir please chek the code i download new file & copy tally folder but invoice pdf genrated not attach whtasup

    code is

    [#Form: Sales Color]


    On : Form Accept : Yes : CALL : SendWhatsapp

    [Function: SendWhatsapp]

    Variable: PrintFileName :String
    Variable: defaultfilepath :String:$$String:$Vouchertypename+"_"+$$String:$vouchernumber +$$String:".pdf"
    Variable: ReceiverContact :String
    Variable: Exportedfilepath :String
    01 :Query Box:"Do you want to Whatsapp the invoice?":Yes:No
    02 :If:$$LastResult
    03 : SET : PrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber ; Export Location path
    04 : SET : ReceiverContact :$LedgerMobile:Ledger:$PartyLedgerName
    20 : SET : SVExportFormat : $$SysName:pDF
    40 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat
    50 : SET : SVOpenFileAfterExport : No
    60 : EXPORT REPORT :.: TRUE
    65 : SET :Exportedfilepath:$$GetFileFullPath:##defaultfilepath
    70 : Exec COM Interface:WhatsappEngine:##ReceiverContact:##Exportedfilepath:mad:@Msgtitle:mad:@waitseconds
    80 : Log:$$LastResult
    100 : End If
    101 : Return


    [COM Interface:WhatsappEngine]

    Project:TallyWhatsappsender
    Class:Class1
    Interface:InitProcess
    Parameter:p1:String:In
    Parameter:p2:String:In
    Parameter:p3:String:In
    Parameter:p4:String:In
    Return: String

    [System:Formulae]
    Msgtitle:"your title"
    waitseconds :60 ;; time in seconds to wait before closing the window
     


  22. teja varma

    teja varma Active Member


    Make sure the file name doesn't contain any special characters
    Make sure weather file is exported or not before sending Whatsapp
    you can test by hardcoding the file path
     


  23. Ankush Goel

    Ankush Goel New Member


    how did you get whatsapp api, can you guide me same?
     


  24. s1g9

    s1g9 New Member


    The code is not attaching the invoice to the chat in chrome.
    Is it because of any recent whatsapp UI changes?

    Eventually Error shows "Timeout after 60 seconds"
     


  25. teja varma

    teja varma Active Member


    yes WhatsApp changed the class names of the input tags
    that's why it's not working
    I will update the changes soon
     


Share This Page